You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a bug with @nuxt-modules/compression (v0.1.0) when building the app with Nuxt 3 (v3.0.0-rc.6) I have this error message :
Nuxt CLI v3.0.0-rc.6 11:28:46
ERROR Cannot find module 'vite-plugin-compression' 11:28:48
Require stack:
- /Users/User/Documents/Nuxt3App/node_modules/@nuxt-modules/compression/dist/module.cjs
Require stack:
- node_modules/@nuxt-modules/compression/dist/module.cjs
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.resolve (node:internal/modules/cjs/helpers:108:19)
at _resolve (node_modules/jiti/dist/jiti.js:1:108226)
at jiti (node_modules/jiti/dist/jiti.js:1:110413)
at node_modules/@nuxt-modules/compression/dist/module.cjs:4:25
at jiti (node_modules/jiti/dist/jiti.js:1:112282)
at requireModule (node_modules/@nuxt/kit/dist/index.mjs:295:26)
at normalizeModule (node_modules/@nuxt/kit/dist/index.mjs:448:53)
at installModule (node_modules/@nuxt/kit/dist/index.mjs:431:47)
at initNuxt (node_modules/nuxt/dist/index.mjs:1421:13)
I know that this plugin is based on vite-plugin-compression but I was wondering if it was needed to install this dependency as well.
First, thanks for letting me know. I developed this plugin long time ago (even Nuxt 3 was in beta back then and now it is in rc.11).
Since then, a lot of things have changed. In order to make the module work as expected, I think I would need to update it to the latest Nuxt format. The issue with the dependency seems to be caused by the fact that it is installed as a dev dep and the it is required in your app as it is a vite plugin.
To fix this, I will refactor the module, change the dependency and probably also change the name (to nuxt-compression) as nuxt3-modules org is now part of the nuxt-modules/nuxt-community.
Hello 馃憢,
I encountered a bug with
@nuxt-modules/compression (v0.1.0)
when building the app with Nuxt 3 (v3.0.0-rc.6) I have this error message :Nuxt CLI v3.0.0-rc.6 11:28:46 ERROR Cannot find module 'vite-plugin-compression' 11:28:48 Require stack: - /Users/User/Documents/Nuxt3App/node_modules/@nuxt-modules/compression/dist/module.cjs Require stack: - node_modules/@nuxt-modules/compression/dist/module.cjs at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.resolve (node:internal/modules/cjs/helpers:108:19) at _resolve (node_modules/jiti/dist/jiti.js:1:108226) at jiti (node_modules/jiti/dist/jiti.js:1:110413) at node_modules/@nuxt-modules/compression/dist/module.cjs:4:25 at jiti (node_modules/jiti/dist/jiti.js:1:112282) at requireModule (node_modules/@nuxt/kit/dist/index.mjs:295:26) at normalizeModule (node_modules/@nuxt/kit/dist/index.mjs:448:53) at installModule (node_modules/@nuxt/kit/dist/index.mjs:431:47) at initNuxt (node_modules/nuxt/dist/index.mjs:1421:13)
I know that this plugin is based on vite-plugin-compression but I was wondering if it was needed to install this dependency as well.
My config :
Also I remarked that the following config was skipped on the latest release of Nuxt 3 (v3.0.0-rc.6):
The text was updated successfully, but these errors were encountered: