You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it has to do with the language server that is picked for the file. In a standalone Vue project, it is the vue language server that is used even for the .ts files. In a monorepository, the TypeScript language server is used and the vue server is only used on .vue files.
On IntelliJ this can be forced with a .ws-context file in the workspace root with the following content:
This issue has been automatically marked as stale because more information has not been provided within 7 days.
It will be closed in 21 days if no information is provided.
If information has been provided, please reply to keep it active.
Thanks for being a part of the Nx community! 🙏
Current Behavior
In a monorepository with @nx/vue, opening the file
apps/app-name/src/main.ts
, there is a TS2307 error on the import of App.vue.Expected Behavior
The import should be recognized correctly.
GitHub Repo
https://github.com/fabiog27/nx-dev-vue-ts-error
Steps to Reproduce
npm install
apps/demo/src/main.ts
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
I think it has to do with the language server that is picked for the file. In a standalone Vue project, it is the vue language server that is used even for the .ts files. In a monorepository, the TypeScript language server is used and the vue server is only used on .vue files.
On IntelliJ this can be forced with a .ws-context file in the workspace root with the following content:
However, this is cumbersome, and only works in IntelliJ.
The text was updated successfully, but these errors were encountered: