image icon indicating copy to clipboard operation
image copied to clipboard

Just don't work

Open wireinet opened this issue 1 year ago • 1 comments

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'

wireinet avatar Feb 26 '24 08:02 wireinet

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

gbyesiltas avatar Mar 11 '24 09:03 gbyesiltas

resolved in https://github.com/nuxt/image/pull/1265

danielroe avatar Apr 22 '24 12:04 danielroe

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 🤷

gbyesiltas avatar Apr 29 '24 09:04 gbyesiltas