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

Maximum call size stack exceed in Nuxt 3 #1447

Closed
xollaborator opened this issue Jul 12, 2022 · 4 comments
Closed

Maximum call size stack exceed in Nuxt 3 #1447

xollaborator opened this issue Jul 12, 2022 · 4 comments
Labels
⛰ pkg:nuxt Related to @pinia/nuxt

Comments

@xollaborator
Copy link

xollaborator commented Jul 12, 2022

Reproduction

https://stackblitz.com/edit/github-ckfaob?file=nuxt.config.ts

Steps to reproduce the bug

Install @pinia/nuxt 0.2.0 together with pinia 2.0.15.
Set ssr: false in nuxt.config.
Run app.

Expected behavior

No 500 so nuxt app is loaded and pinia can be used.

Actual behavior

The app cannot start because of 500: Maximum call size stack exceed in Nuxt 3. Hopefully the repro link where I just edited nuxt.config to turn off SSR will show you more than:

at createMock (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/unenv/runtime/mock/proxy.mjs?v=e62355c5:6:10)
at Object.get (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/unenv/runtime/mock/proxy.mjs?v=e62355c5:17:43)
at toRaw (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/.vite/deps/vue.js?v=2aaec172:1043:35)
at toRaw (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/.vite/deps/vue.js?v=2aaec172:1044:16)
at toRaw (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/.vite/deps/vue.js?v=2aaec172:1044:16)
at toRaw (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/.vite/deps/vue.js?v=2aaec172:1044:16)
at toRaw (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/.vite/deps/vue.js?v=2aaec172:1044:16)
at toRaw (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/.vite/deps/vue.js?v=2aaec172:1044:16)
at toRaw (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/.vite/deps/vue.js?v=2aaec172:1044:16)
at toRaw (https://github-ckfaob--3000.local.webcontainer.io/_nuxt/node_modules/.vite/deps/vue.js?v=2aaec172:1044:16)

Additional information

While SSG in Nuxt 3 is not fully supported yet the root cause might be within pinia plugin, #1442 does not seem to be the reason because the message was present in both modes.
I'm a bit surprised I wasn't able to find this issue here but still expect it might be a duplicate.

@DanielKaviyani
Copy link

set ssr: true in nuxt.config or remove it

@leosin
Copy link

leosin commented Jul 12, 2022

"@pinia/nuxt": "^0.1.9", 

use 0.1.9 fine..but update to 0.2.0 , "Maximum call size stack exceed"

@posva
Copy link
Member

posva commented Jul 12, 2022

@pi0 Do you have any idea of what could trigger a 500 when setting ssr: false? Also, why is there a 500 on the client side? 🤔

@xollaborator
Copy link
Author

Thank you Eduardo for quick fix and release, it does work now as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⛰ pkg:nuxt Related to @pinia/nuxt
Projects
None yet
Development

No branches or pull requests

4 participants