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

Cannot start nuxt: Cannot find module 'nuxt3' #2

Open
capoia opened this issue Jun 14, 2022 · 14 comments
Open

Cannot start nuxt: Cannot find module 'nuxt3' #2

capoia opened this issue Jun 14, 2022 · 14 comments

Comments

@capoia
Copy link

capoia commented Jun 14, 2022

Hi, it's me again, after the last nuxt update, when I install the package it returns the error "Cannot start nuxt: Cannot find module 'nuxt3' ".
Removing the package it works again, I believe it is some reference to the nuxt3 package that no longer exists, after the RC of nuxt it became only nuxt.
image

@newbeea
Copy link
Owner

newbeea commented Jun 14, 2022

Sorry I haven't update nuxt3 for a long time, I'll check this out.

@newbeea
Copy link
Owner

newbeea commented Jun 14, 2022

I updated nuxt to [email protected] in the starter https://github.com/newbeea/nuxt3-apollo-starter
changed "nuxt3" to "nuxt" in nuxt.config.ts, it worked fine.
remember update this module to 0.1.1 because 0.1.0 doesn't work with [email protected] in production mode

@newbeea
Copy link
Owner

newbeea commented Jun 14, 2022

@capoia

@capoia
Copy link
Author

capoia commented Jun 14, 2022

Thanks a lot for the feedback!

I still can't get it to work, even after updating the package it still returns the same error!
Already delete the entire node_modules and package-lock.json, but still no success!

My nuxt.config.ts
image

My package.json
image

Video

Screen.Recording.2022-06-14.at.11.24.17.mp4

Obs: As you can see, with the package it returns that error, when I take it out it works, the error generated is because the package is missing.

@newbeea
Copy link
Owner

newbeea commented Jun 15, 2022

sorry i can not reproduce this, would you please give me a repo
what's your node version?

@capoia
Copy link
Author

capoia commented Jun 15, 2022

sorry i can not reproduce this, would you please give me a repo what's your node version?

https://github.com/capoia/cubo-bug
node: 16.15.1

@capoia
Copy link
Author

capoia commented Jun 17, 2022

@newbeea any news?

@capoia
Copy link
Author

capoia commented Jun 29, 2022

@newbeea ?

@tomhave97
Copy link

I have the same issue. I guess it comes from the untyped package that comes along with the module
npm why untyped atleast gives this reference, and I found out that untyped still uses nuxt3: latest
in its package import, might be the issue in the end

@tomhave97
Copy link

I created a PR [https://github.com/unjs/untyped/pull/42]
and will create one here to update the package, it should work after that.

@capoia
Copy link
Author

capoia commented Jul 2, 2022

@tomhave97 is there any way for me to use your version until the untyped package is updated?
I tried going inside node-modules to make the change, but there is no web/nuxt.config.ts for me to modify.

@tomhave97
Copy link

I haven't tried to update it to use the package. Maybe there already is a problem with it trying to get it through the package json, if there is no web directory. But these are wild guesses. I currently hope to get the PR reviewed to check out if a new version of untyped with it will fix it. 😞

@tomhave97
Copy link

@capoia a temporary fix I have found is to change nuxt3 to nuxt where I marked it in:
node_modules/@nuxt/kit/dist/index.mjs

image

@glopezep
Copy link

glopezep commented Aug 3, 2022

Hello, @newbeea is it possible to fix this?

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

4 participants