strapi
strapi copied to clipboard
[nuxt] [request error] [unhandled] [500] Cannot find module './stringify'
Version
node: 20.9.0 (Volta) npm: 10.2.3 (Volta) nuxt: 3.8.2 @nuxtjs/strapi: 1.10.1 @strapi/strapi: 4.15.5 (on the Strapi server) primevue: 3.43.0 nuxt-primevue: 0.2.2
Reproduction Link
Steps to reproduce
Install and enable primevue
and nuxt-primevue
packages/modules
What is Expected?
I expect a nice website in my browser
What is actually happening?
I get a 500 error
[nuxt] [request error] [unhandled] [500] Cannot find module './stringify'
Require stack:
- C:\webdev\- Vue Playground\- Nuxt\primevue\nuxt-primevue-strapi\qs
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at C:\webdev\- Vue Playground\- Nuxt\primevue\nuxt-primevue-strapi\qs:3:17
at ViteNodeRunner.directRequest (/C:/webdev/-%20Vue%20Playground/-%20Nuxt/primevue/nuxt-primevue-strapi/node_modules/vite-node/dist/client.mjs:341:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ViteNodeRunner.cachedRequest (/C:/webdev/-%20Vue%20Playground/-%20Nuxt/primevue/nuxt-primevue-strapi/node_modules/vite-node/dist/client.mjs:197:14)
at async ViteNodeRunner.dependencyRequest (/C:/webdev/-%20Vue%20Playground/-%20Nuxt/primevue/nuxt-primevue-strapi/node_modules/vite-node/dist/client.mjs:231:12)
at async C:\webdev\- Vue Playground\- Nuxt\primevue\nuxt-primevue-strapi\node_modules\@nuxtjs\strapi\dist\runtime\composables\useStrapiClient.mjs:2:31
@nuxt/strapi
doesn't agree with nuxt-primevue
or vice versa.
I can run both modules fine separately, but if I run both modules at the same time the error occurs.
I figured maybe on installation one package overwrites something the other package relies on, so I tried different orders of installation. To no avail.
Versions:
- nuxt: "^3.8.2
- @nuxtjs/strapi: "^1.10.1"
- nuxt-primevue: "^0.2.2"
Same happens with @invictus.codes/nuxt-vuetify
No problems with @nuxt/ui
If you use pnpm and have this error you need to add .npmrc to your working dir with following settings:
shamefully-hoist=true
auto-install-peers=true