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

[nuxt] [request error] [unhandled] [500] Cannot find module './stringify' #376

Open
Zignature opened this issue Dec 6, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Zignature
Copy link

Zignature commented Dec 6, 2023

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
@Zignature Zignature added the bug Something isn't working label Dec 6, 2023
@Zignature
Copy link
Author

Zignature commented Dec 6, 2023

@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"

@Zignature
Copy link
Author

Same happens with @invictus.codes/nuxt-vuetify

@Zignature
Copy link
Author

No problems with @nuxt/ui

@alexovn
Copy link

alexovn commented Feb 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants