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

Most upvoted comments

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.21 and Nuxt 3.12.2

export default defineNuxtConfig({
  typescript: {
    strict: true,
    typeCheck: false
  }
}

Disable type checking at build time and run it from the console or as script in package.json

npx nuxi typecheck

Same issue still happening with Nuxt v3.12.2 and vue-tsc 2.0.21. Any updates?

Looks like the latest version "vue-tsc": "^2.0.10" is working fine with "nuxt": "^3.11.2"

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

I can confirm. Still am issue on my end

Still here with vue-tsc version 2.0.19.

 ERROR  Cannot start nuxt:  Cannot find module 'vue-tsc/out/index'                                                                                                          10:21:56 ч.  
Require stack:
- \node_modules\vite-plugin-checker\dist\esm\checkers\vueTsc\prepareVueTsc.js

  • Operating System: Windows_NT
  • Node Version: v20.12.2
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: npm@10.8.0
  • Builder: -
  • User Config: runtimeConfig, modules, nitro, app, typescript, routeRules, devtools
  • Runtime Modules: @pinia/nuxt@0.5.1, @nuxt/ui@2.16.0, @nuxt/devtools@1.3.1
  • Build Modules: -

I can confirm too: problem persists even with a simple vue-tsc --noEmit invocation

It 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'

You’ll get it soon, in next Nuxt patch - follow nuxt/nuxt#27648.

Thank you! 👍🏻

Yes, if you are using nuxt then you will have to wait for them to upgrade their dependencies

Looks like the latest version "vue-tsc": "^2.0.10" is working fine with "nuxt": "^3.11.2"

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:

  • …/app-template/node_modules/.pnpm/vite-plugin-checker@0.6.4_eslint@8.57.0_stylelint@16.2.1_typescript@5.3.3_vite@5.1.4_vue-tsc@2.0.4/node_modules/vite-plugin-checker/dist/esm/checkers/vueTsc/prepareVueTsc.js

Cross referencing here since it seems to influence also vite-plugin-checker: https://github.com/fi3ework/vite-plugin-checker/issues/306

I think we need an upgrade path for libraries consuming vue-tsc v2.