language-tools: ERROR Cannot start nuxt: Cannot find module 'vue-tsc/out/index'
ERROR Cannot start nuxt: Cannot find module 'vue-tsc/out/index' after upgrading to v2
I’m using Nuxt 3 latest with a monorepo config (nuxt layers)
The only solution currently is to downgrade as suggested by @davinma
Downgrade "vue-tsc": "^2.0.4" to "vue-tsc": "^1.8.22"
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 28
- Comments: 33 (5 by maintainers)
Commits related to this issue
- chore: generate 時に型チェックを行うために、vue-tsc と typescript を追加 * vue-tsc は以下の問題により v1 系を使用 ``` You may experience issues with the latest vue-tsc and vite-plugin-checker, used internally when type checking. F... — committed to tmtr/nuxt3-get-started by tmtr 3 years ago
- fix a dependency bug for vue-tsc https://github.com/vuejs/language-tools/issues/3969 — committed to dddrop/nuxt-layers by dddrop 2 years ago
You’ll get it soon, in next Nuxt patch - follow https://github.com/nuxt/nuxt/pull/27648.
Confirmed, problem remains in
"^3.11.2",and"vue-tsc": "^2.0.16"Downgrade
"vue-tsc": "^2.0.4"to"vue-tsc": "^1.8.22", I have tried it and worked.Looks like it is finally fixed “nuxt”: “^3.12.3”, “vue-tsc”: “^2.0.24”
Any updates? Still occurring with
2.0.21and Nuxt3.12.2Disable type checking at build time and run it from the console or as script in package.json
Same issue still happening with Nuxt v3.12.2 and vue-tsc 2.0.21. Any updates?
Not exactly. I’ve just upgraded nuxt and vue-tsc to latest versions (same as you said) and the error persists:
Cannot start nuxt: Cannot find module 'vue-tsc/out/index'Nuxt doesn’t directly consume vue-tsc and I think vite-plugin-checker (which we use) is already aware.
A fix is on its way, if somebody can help I’m sure it’ll be appreciated: https://github.com/fi3ework/vite-plugin-checker/pull/327
https://github.com/fi3ework/vite-plugin-checker/pull/327
I can confirm. Still am issue on my end
Closing, as https://github.com/fi3ework/vite-plugin-checker/pull/327 had been merged.
Still here with vue-tsc version 2.0.19.
I can confirm too: problem persists even with a simple
vue-tsc --noEmitinvocationIt appears that all Nuxt repositories configured with typescript: { typeCheck: true } and using vue-tsc version 1.8.27 or later are experiencing the same error: vue-tsc/out/index.
Same issue still happening with Nuxt3 + vue-tsc 2.0.21
Error: Cannot find module 'vue-tsc/out/index'Thank you! 👍🏻
Yes, if you are using nuxt then you will have to wait for them to upgrade their dependencies
Issue is still there.
Looks like the latest version
"vue-tsc": "^2.0.10"is working fine with"nuxt": "^3.11.2"I have the same issue: ERROR Cannot start nuxt: Cannot find module ‘vue-tsc/out/index’
Stack: “nuxt”: “^3.10.3”, “vue-tsc”: “^2.0.4”
Require stack:
Cross referencing here since it seems to influence also
vite-plugin-checker: https://github.com/fi3ework/vite-plugin-checker/issues/306I think we need an upgrade path for libraries consuming
vue-tscv2.