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

Error 500 #247

Closed
Pok09 opened this issue May 12, 2023 · 9 comments
Closed

Error 500 #247

Pok09 opened this issue May 12, 2023 · 9 comments
Labels
bug Something isn't working released

Comments

@Pok09
Copy link

Pok09 commented May 12, 2023

Doen't work :

Nuxt: 3.4.3 
Nitro: 2.3.3
Cannot read properties of undefined (reading 'public')

at wrapper (C:\laragon\www\flex\app\node_modules\.pnpm\nuxt@3.4.3_@types+node@18.0.0\node_modules\nuxt\dist\app\nuxt.js:198:21)
at C:\laragon\www\flex\app\virtual:nuxt:C:\laragon\www\flex\app\.nuxt\plugins\server.mjs:31:80
at Module.executeAsync (/C:/laragon/www/flex/app/node_modules/.pnpm/unctx@2.3.0/node_modules/unctx/dist/index.mjs:111:19)
at Object.setup (C:\laragon\www\flex\app\virtual:nuxt:C:\laragon\www\flex\app\.nuxt\plugins\server.mjs:31:63)
at wrapper (C:\laragon\www\flex\app\node_modules\.pnpm\nuxt@3.4.3_@types+node@18.0.0\node_modules\nuxt\dist\app\nuxt.js:198:21)
at fn (C:\laragon\www\flex\app\node_modules\.pnpm\nuxt@3.4.3_@types+node@18.0.0\node_modules\nuxt\dist\app\nuxt.js:214:27)
at Object.callAsync (/C:/laragon/www/flex/app/node_modules/.pnpm/unctx@2.3.0/node_modules/unctx/dist/index.mjs:68:55)
at callWithNuxt (C:\laragon\www\flex\app\node_modules\.pnpm\nuxt@3.4.3_@types+node@18.0.0\node_modules\nuxt\dist\app\nuxt.js:216:23)
at applyPlugin (C:\laragon\www\flex\app\node_modules\.pnpm\nuxt@3.4.3_@types+node@18.0.0\node_modules\nuxt\dist\app\nuxt.js:129:29)
@ricovandevin
Copy link

I'm experiencing the same issue.

[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'public')                                                                                          3:45:11 PM
  at Object.setup (./node_modules/nuxt-jsonapi/dist/runtime/plugin.mjs:6:55)  
  at wrapper (./node_modules/nuxt/dist/app/nuxt.js:198:21)  
  at fn (./node_modules/nuxt/dist/app/nuxt.js:214:27)  
  at Object.callAsync (./node_modules/unctx/dist/index.mjs:68:55)  
  at callWithNuxt (./node_modules/nuxt/dist/app/nuxt.js:216:23)  
  at applyPlugin (./node_modules/nuxt/dist/app/nuxt.js:129:29)  
  at Module.applyPlugins (./node_modules/nuxt/dist/app/nuxt.js:139:11)  
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)  
  at async createNuxtAppServer (./node_modules/nuxt/dist/app/entry.js:29:7)  
  at async default (./node_modules/@nuxt/vite-builder/dist/runtime/vite-node.mjs:27:18)

Nuxt version 3.4.3.

@ricovandevin
Copy link

The issue seems to be that nuxtApp.payload.config is not set on the server side. Settings ssr: false in the Nuxt config gets rid of the error. This might work as a temporary workaround.

@Pok09
Copy link
Author

Pok09 commented May 12, 2023

The issue seems to be that nuxtApp.payload.config is not set on the server side. Settings ssr: false in the Nuxt config gets rid of the error. This might work as a temporary workaround.

doesn't work for me

@patrickcate
Copy link
Owner

I can confirm the issue and am investigating. It is related to some change in Nuxt 3.4.0. Downgrading to 3.3.3 should work as a temporary workaround.

@patrickcate
Copy link
Owner

I just released version 2.0.2 which should fix this issue.

@patrickcate patrickcate added the bug Something isn't working label May 13, 2023
@patrickcate
Copy link
Owner

🎉 This issue has been resolved in version 2.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ricovandevin
Copy link

I can confirm that the issue is fixed in version 2.0.2. Thanks for the fast response @patrickcate !

@Pok09
Copy link
Author

Pok09 commented May 15, 2023

🎉 This issue has been resolved in version 2.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Great, no error now
Thanks for the fast response

@Pok09
Copy link
Author

Pok09 commented May 15, 2023

this issue can be close

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

No branches or pull requests

3 participants