-
-
Couldn't load subscription status.
- Fork 1.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingcontribution welcomeupstreamThe fix depends on a dependencyThe fix depends on a dependencyvue 2.xSpecific to Vue 2 usageSpecific to Vue 2 usage⛰ pkg:nuxtRelated to @pinia/nuxtRelated to @pinia/nuxt
Description
Reproduction
Thank you so much for such a great state managing lib for Vue.
Pinia works well with Nuxt as well. However, when I tried to use it along with nuxt-vite, an issue happen from the start.
I tried with the fresh install and also, there is a reproduction link to Codesandbox:
Steps to reproduce the behavior
- Initialize a fresh Nuxt universal app + install the dependencies (the latest versions are used at the moment):
"dependencies": { "@nuxtjs/composition-api": "^0.29.2", "@pinia/nuxt": "0.0.2", "nuxt": "^2.15.8", "pinia": "^2.0.0-rc.9" }, "devDependencies": { "nuxt-vite": "^0.2.4" } - Add required modules into "buildModules" section of nuxt.config,js:
buildModules: ["nuxt-vite", "@nuxtjs/composition-api/module", "@pinia/nuxt"], - Run
npm run dev - See the error
Expected behavior
The app launched correctly with listed modules/configurations.
Actual behavior
The app won't launch because of the error.
This is comes in the console:
Uncaught SyntaxError: The requested module '/node_modules/pinia/dist/pinia.cjs?import' does not provide an export named 'defineStore'
Additional information
node version is 14.17.3
npm version is 7.24.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcontribution welcomeupstreamThe fix depends on a dependencyThe fix depends on a dependencyvue 2.xSpecific to Vue 2 usageSpecific to Vue 2 usage⛰ pkg:nuxtRelated to @pinia/nuxtRelated to @pinia/nuxt
Type
Projects
Status
✅ Done