diff --git a/server/src/services/typescriptService/util.ts b/server/src/services/typescriptService/util.ts index 2fdf370e5f..b8034748ab 100644 --- a/server/src/services/typescriptService/util.ts +++ b/server/src/services/typescriptService/util.ts @@ -10,7 +10,7 @@ export function isVueFile(path: string) { * to be used in TS Language Service */ export function isVirtualVueFile(path: string, projectFiles: Set) { - return path.endsWith('.vue.ts') && projectFiles.has(path.slice(0, -'.ts'.length)); + return path.endsWith('.vue.ts') && (!path.includes('node_modules') || projectFiles.has(path.slice(0, -'.ts'.length))); } /**