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

Just don't work #1262

Closed
wireinet opened this issue Feb 26, 2024 · 3 comments
Closed

Just don't work #1262

wireinet opened this issue Feb 26, 2024 · 3 comments

Comments

@wireinet
Copy link

I just can't make this work...
install, add module, restart server, get error:
[worker reload] [worker init] Cannot find package 'ipx' imported from D:.......nuxt\dev\index.mjs
just default setup: no option in 'defineNuxtConfig'

@gbyesiltas
Copy link

gbyesiltas commented Mar 11, 2024

I have the same issue while trying to run for development since upgrading to 1.4.0. Had no issues in 1.3.0. Doesn't happen if I build for production

@danielroe
Copy link
Member

resolved in #1265

@gbyesiltas
Copy link

I want to note something here:

Even after the PR that @danielroe linked, I continued to have this issue. Then when I dove a bit deeper to create a reproduction I realised that the difference between the working version and my non-working version was the way that the ipx package was imported in the .nuxt/dev/index.mjs file. In the working version, the import path went like "file:///Users/..." where as the non-working version it was simply "ipx".

Trying to figure out where this was coming from, I did a bunch of things: (1) Removing the explicit @nuxt/devtools dependency from our package.json since it now automatically comes from nuxt (2) Copying over the excludes field from the auto generated nuxt tsconfig again to the project one since we overwrite/expand it, and (3) just went back-and-forth between versions 1.3.0, 1.4.0, and 1.6.0. By the end of this, the issue was fixed for me.

I'm not sure which one of them ended up fixing it but maybe this will be helpful to someone 🤷

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

3 participants