Skip to content

Commit 84380bb

Browse files
committed
chore(language-service): improve global types error message for JS projects
- Include jsconfig.json alongside tsconfig.json in error message - Add performance warning about excluding node_modules - Better guidance for JavaScript projects using Vue language tools
1 parent eea37a7 commit 84380bb

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". If creating a new config file and your project might have node_modules in the future, add "exclude": ["node_modules"] to maintain performance.
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)