Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR Cannot start nuxt: Cannot find module 'vue-tsc/out/index' #3969

Open
Archetipo95 opened this issue Mar 4, 2024 · 13 comments
Open

ERROR Cannot start nuxt: Cannot find module 'vue-tsc/out/index' #3969

Archetipo95 opened this issue Mar 4, 2024 · 13 comments

Comments

@Archetipo95
Copy link

After upgrading to v2

I'm using Nuxt 3 latest with a monorepo config (nuxt layers)

@sullyD64
Copy link

sullyD64 commented Mar 4, 2024

Cross referencing here since it seems to influence also vite-plugin-checker: fi3ework/vite-plugin-checker#306

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

@Rigo-m
Copy link

Rigo-m commented Mar 4, 2024

@danielroe does this require an issue tracking in the nuxt repo?

@danielroe
Copy link
Member

Nuxt doesn't directly consume vue-tsc and I think vite-plugin-checker (which we use) is already aware.

@Rigo-m
Copy link

Rigo-m commented Mar 4, 2024

Thanks 🤗

@gygoo
Copy link

gygoo commented Mar 4, 2024

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

@davinma
Copy link

davinma commented Mar 5, 2024

Downgrade "vue-tsc": "^2.0.4" to "vue-tsc": "^1.8.22", I have tried it and worked.

@ayZagen
Copy link

ayZagen commented Mar 27, 2024

this error also occurs with storybook build.

> storybook build
  
  @storybook/cli v8.0.4
  
  info => Cleaning outputDir: storybook-static
  info => Loading presets
  info => Building manager..
  info => Manager built (290 ms)
  info => Building preview..
  info => Copying static files: stories/public at storybook-static
  => Failed to build the preview
  Error: Cannot find module 'vue-tsc/out/index'
  Require stack:
  - ./node_modules/.pnpm/vite-plugin-checker@0.6.4_eslint@8.57.0_typescript@5.3.3_vite@5.2.6_vue-tsc@2.0.7/node_modules/vite-plugin-checker/dist/esm/checkers/vueTsc/prepareVueTsc.js
      at Module._resolveFilename (node:internal/modules/cjs/loader:[114](https://github.com/PlusAuth/plusauth-widget/actions/runs/8451989016/job/23151446690#step:5:116)4:15)
      at Module._resolveFilename (./node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.19.12/node_modules/esbuild-register/dist/node.js:4799:36)
      at Function.resolve (node:internal/modules/helpers:187:19)
      at <anonymous> (./node_modules/.pnpm/vite-plugin-checker@0.6.4_eslint@8.57.0_typescript@5.3.3_vite@5.2.6_vue-tsc@2.0.7/node_modules/vite-plugin-checker/src/checkers/vueTsc/prepareVueTsc.ts:14:31)
      at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
      at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
      at createCheckers (./node_modules/.pnpm/vite-plugin-checker@0.6.4_eslint@8.57.0_typescript@5.3.3_vite@5.2.6_vue-tsc@2.0.7/node_modules/vite-plugin-checker/src/main.ts:46:37)
      at config (./node_modules/.pnpm/vite-plugin-checker@0.6.4_eslint@8.57.0_typescript@5.3.3_vite@5.2.6_vue-tsc@2.0.7/node_modules/vite-plugin-checker/src/main.ts:86:18)
      at async runConfigHook (file://./node_modules/.pnpm/vite@5.2.6_@types+node@20.11.19_terser@5.30.0/node_modules/vite/dist/node/chunks/dep-BBHrJRja.js:68541:25)
      at async resolveConfig (file://./node_modules/.pnpm/vite@5.2.6_@types+node@20.11.19_terser@5.30.0/node_modules/vite/dist/node/chunks/dep-BBHrJRja.js:67996:14)

@Archetipo95
Copy link
Author

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

@Mohamadhassan98
Copy link

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'

@genu
Copy link

genu commented Apr 5, 2024

I can confirm. Still am issue on my end

@franklx
Copy link

franklx commented Apr 6, 2024

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

@kiketordera
Copy link

kiketordera commented May 7, 2024

Confirmed, problem remains in "^3.11.2", and "vue-tsc": "^2.0.16"

@luohuiqun
Copy link

Downgrade "vue-tsc": "^2.0.4" to "vue-tsc": "^1.8.22", I have tried it and worked.

thanks it worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests