N
Nuxt8mo ago
Tajeddine

Nuxt image module error

I did install the module as the following:
npx nuxi@latest module add image
npx nuxi@latest module add image
I do get the following error when trying to run the dev server:
[10:37:46 AM] WARN "ipx" is imported by "node_modules/@nuxt/image/dist/runtime/ipx.mjs", but could not be resolved – treating it as an external dependency.

✔ Nuxt Nitro server built in 880 ms nitro 10:37:46 AM

[10:37:46 AM] ERROR [worker reload] [worker init] Cannot find package 'ipx' imported from /home/tajeddine/programming/nuxt-boilerplate/.nuxt/dev/index.mjs

at packageResolve (node:internal/modules/esm/resolve:844:9)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1121:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
[10:37:46 AM] WARN "ipx" is imported by "node_modules/@nuxt/image/dist/runtime/ipx.mjs", but could not be resolved – treating it as an external dependency.

✔ Nuxt Nitro server built in 880 ms nitro 10:37:46 AM

[10:37:46 AM] ERROR [worker reload] [worker init] Cannot find package 'ipx' imported from /home/tajeddine/programming/nuxt-boilerplate/.nuxt/dev/index.mjs

at packageResolve (node:internal/modules/esm/resolve:844:9)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1121:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
1 Reply
Room 208
Room 2088mo ago
I believe I had the same issue at some point, though I don't remember exactly how i fixed it, it might have just been installing ipx. https://www.npmjs.com/package/ipx Or it was upgrading my node version to 20+
npm
ipx
High performance, secure and easy-to-use image optimizer.. Latest version: 3.0.1, last published: 2 months ago. Start using ipx in your project by running npm i ipx. There are 28 other projects in the npm registry using ipx.
Want results from more Discord servers?
Add your server