I have installed the latest version of nuxt and the @pinia/nuxt module. With @pinia/nuxt the page can no longer be loaded. #2907
Unanswered
mydidefix
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
I have installed the latest version of nuxt and the @pinia/nuxt module. With @pinia/nuxt the page can no longer be loaded.
Steps to reproduce the bug
Dear team,
I have installed the latest version of nuxt and the @pinia/nuxt module. If I remove pinia in the nuxt.config.ts under modules the page works. but if I add it the page cannot be loaded see error below.
I tried a lot with ChatGPT to solve the problem but without success.
Thank you very much
My package.json
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"nuxt": "^3.15.4",
"vue": "latest",
"vue-router": "latest"
},
"devDependencies": {
"@pinia/nuxt": "^0.9.0"
}
}
Error: ERROR [nuxt] [request error] [unhandled] [500] Cannot find package '@vue/composition-api' imported from /Users/demo/node_modules/vue-demi/lib/index.mjs
Expected behavior
I have installed the latest version of nuxt and the @pinia/nuxt module. If I remove pinia in the nuxt.config.ts under modules the page works. but if I add it the page cannot be loaded see error below.
I tried a lot with ChatGPT to solve the problem but without success.
Actual behavior
I have installed the latest version of nuxt and the @pinia/nuxt module. If I remove pinia in the nuxt.config.ts under modules the page works. but if I add it the page cannot be loaded see error below.
I tried a lot with ChatGPT to solve the problem but without success.
Additional information
My package.json
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"nuxt": "^3.15.4",
"vue": "latest",
"vue-router": "latest"
},
"devDependencies": {
"@pinia/nuxt": "^0.9.0"
}
}
Beta Was this translation helpful? Give feedback.
All reactions