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

[vike][Wrong Usage] Can't access pageContext.pinia on the client side. Because it can't be serialized, see server logs. #193

Closed
amumufun opened this issue Sep 3, 2024 · 4 comments
Labels
bug 💥 Something isn't working

Comments

@amumufun
Copy link

amumufun commented Sep 3, 2024

Description

chunk-B8FgST7x.js:2 Error: [vike][Wrong Usage] Can't access pageContext.pinia on the client side. Because it can't be serialized, see server logs.
at w (chunk-DIG79TLW.js:1:1502)
at ae (chunk-DIG79TLW.js:2:954)
at Object.get (chunk-B8FgST7x.js:1:16082)
at op (chunk-BxOFPIm6.js:2:103)
at chunk-BxOFPIm6.js:18:13078
at Array.map ()
at An (chunk-BxOFPIm6.js:18:13043)
at xp (chunk-BxOFPIm6.js:18:14464)
at chunk-B8FgST7x.js:2:9396
at chunk-DIG79TLW.js:2:2638

**"vike": "^0.4.193",
"vike-vue": "^0.8.3",
"vike-vue-pinia": "^0.1.1"**
@amumufun amumufun added the bug 💥 Something isn't working label Sep 3, 2024
@brillout brillout transferred this issue from vikejs/vike Sep 3, 2024
@brillout
Copy link
Member

brillout commented Sep 3, 2024

Can you provide a minimal reproduction?

@amumufun
Copy link
Author

amumufun commented Sep 3, 2024

https://github.com/amumufun/vike-pinia-demo.git
Reproduction steps: After running, click to switch to the about page, and then click the Home link on the about page.

Related to +data.ts

@brillout
Copy link
Member

brillout commented Sep 3, 2024

👍 @4350pChris Ideas?

@brillout
Copy link
Member

Fix released in vike-vue-pinia@0.1.3.

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