Running Nuxt 3 with Pinia (SSR) builded version on Node causes problems #2156
Unanswered
nhatimme
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
Steps to reproduce the bug
Install Nuxt 3 with SSR enabled and Pinia activated. Import a store inside a template and use it with
await productsStore.getProduct(Number(route.params.id))
. Then build it and run the builded version. In the dev version there is no errors/problems.Expected behavior
On the development version, there is not issue. When we run the builded version, the error is as following in console: (The website is working, but we see this error).
Inside the template we have:
await productsStore.getProduct(Number(route.params.id))
Actual behavior
On the development version, there is not issue. When we run the builded version, the error is as following in console: (The website is working, but we see this error).
Inside the template we have:
await productsStore.getProduct(Number(route.params.id))
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions