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

Unable to set typescript.typeCheck to true (Cannot start nuxt: Cannot find module 'vue-tsc/out/proxy') #15640

Closed
mcrapts opened this issue Dec 18, 2022 · 1 comment

Comments

@mcrapts
Copy link

mcrapts commented Dec 18, 2022

Environment

Nuxi 3.0.0 14:44:58
14:44:59
RootDir: /home/marco/projects/nuxt3-test 14:44:59
Nuxt project info: 14:44:59


  • Operating System: Linux
  • Node Version: v16.15.0
  • Nuxt Version: 3.0.0
  • Nitro Version: 1.0.0
  • Package Manager: npm@8.5.5
  • Builder: vite
  • User Config: typescript
  • Runtime Modules: -
  • Build Modules: -

👉 Report an issue: https://github.com/nuxt/framework/issues/new 14:44:59

👉 Suggest an improvement: https://github.com/nuxt/framework/discussions/new

👉 Read documentation: https://v3.nuxtjs.org

Reproduction

  1. Create new Nuxt project using npm nuxi init <project-name>
  2. Follow instructions to use TypeScript according to https://nuxt.com/docs/guide/concepts/typescript#typescript: npm i --save-dev vue-tsc typescript
  3. Modify nuxt.config.ts to set typescript.typeCheck to true.
  4. Run npm run dev and see that it results in the following error: "Cannot find module 'vue-tsc/out/proxy'"

I reproduced the issue in the sandbox below:
https://stackblitz.com/edit/github-yrejwg?file=package.json

Describe the bug

After installing vue-tsc and typescript and setting typescript.typeCheck to true, starting Nuxt results in the following error:

Cannot start nuxt: Cannot find module 'vue-tsc/out/proxy'

Additional context

No response

Logs

No response

Copy link
Member

danielroe commented Dec 19, 2022

This is an upstream regression: see fi3ework/vite-plugin-checker#193. For now you can pin vue-tsc@1.0.13.

NexZhu referenced this issue in daotl/nuxt-starter Dec 20, 2022
- Merge upstream (upgraded to nuxt@3.0.0)
- Temporary fixing `vue-tsc` to `1.0.13` to workaround: https://github.com/nuxt/framework/issues/9777#issuecomment-1357547284
- Temporary using forked `unplugin-auto-imports` and `unplugin-vue-components` for `nuxt@3.0.0` compatibility
- Remove GraphQL
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
takanakahiko added a commit to prickathon/prismdb that referenced this issue Oct 8, 2023
takanakahiko added a commit to prickathon/prismdb that referenced this issue Oct 10, 2023
* reinstall nuxt

* migrate from axios to fetch

* migrate to @nuxt/proxy to routeRules

* remove buefy from dependencies

* https://nuxt.com/docs/migration/configuration#migration

* https://nuxt.com/docs/migration/configuration#esm-syntax

* https://nuxt.com/docs/migration/plugins-and-middleware#plugins

* update codemirror version

* nuxt/nuxt#15640

* Stop loading post css

* migrate codemirror from v5 to v6

* nuxt/nuxt#14952

* https://nuxt.com/docs/migration/bundling#steps

* https://nuxt.com/docs/migration/configuration#directory-changes

* npx nuxi prepare

* update lint setting and lint fix

* remove deps

* remove deps

* remove `--openssl-legacy-provider` options

* https://nuxt.com/docs/migration/server#steps

* install express

* remove nodemon

* install @types/express

* https://nuxt.com/docs/migration/meta#meta-tags

* config simplified

* https://nuxt.com/docs/migration/pages-and-layouts#migration-1

* https://nuxt.com/docs/migration/pages-and-layouts#example-nested-routes-and-definepagemeta

* https://nuxt.com/docs/migration/auto-imports#auto-imports

* https://nuxt.com/docs/api/utils/define-nuxt-component#definenuxtcomponent

* https://nuxt.com/docs/api/composables/use-route#useroute

* fix typos of plugins/nuxt-codemirror-plugin.ts

* reproduce the Style provided by buefy

* repair gist components as much as possible

* https://nuxt.com/docs/migration/pages-and-layouts#dynamic-routes

* SparqlResponseTable in vue3 format

* https://nuxt.com/docs/migration/component-options#using-composables

* https://nuxt.com/docs/migration/pages-and-layouts#migration-1

* https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.12#:~:text=more%20info.-,%E2%9A%97%EF%B8%8F%20Nitropack%200.6,-Nitropack%20upgraded%20to

* Get sparql results in json

* remove babel-eslint

* https://nuxt.com/docs/getting-started/deployment#entry-point

* lint

* enable typecheck

* use head of NuxtConfig

* https://github.com/nuxt/starter/blob/v3/.gitignore

* remove useHead of app.vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants