Skip to content

Commit 2d51435

Browse files
chore(language-service): improve global types error message for JS projects (#5574)
1 parent eea37a7 commit 2d51435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-service/lib/plugins/vue-global-types-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Failed to write the global types file. Make sure that:
4242
1. "node_modules" directory exists.
4343
2. "${vueCompilerOptions.lib}" is installed as a direct dependency.
4444
45-
Alternatively, you can manually set "vueCompilerOptions.globalTypesPath" in your "tsconfig.json".
45+
Alternatively, you can manually set "vueCompilerOptions.globalTypesPath" in your "tsconfig.json" or "jsconfig.json". To prevent potential performance issues, consider adding \`"exclude": ["node_modules"]\` when creating a new config file.
4646
4747
If all dependencies are installed, try running the "vue.action.restartServer" command to restart Vue and TS servers.
4848
`.trim(),

0 commit comments

Comments
 (0)