-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Reproduction
I have following config:
"dependencies": {
"pinia": "^2.0.0-beta.5",
"vue": "^3.1.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.3.0",
"@vue/compiler-sfc": "^3.0.5",
"autoprefixer": "^10.2.5",
"postcss": "^8.3.0",
"tailwindcss": "^2.2.2",
"typescript": "^4.3.2",
"vite": "^2.4.4",
"vue-tsc": "^0.2.2"
}
main.ts
import { createApp } from "vue";
import App from "./App.vue";
import { store } from "./store";
createApp(App)
.use(store)
.mount("#app");
store/index.ts
import { createPinia } from "pinia";
const store = createPinia();
export {
store
};
Steps to reproduce the behavior
- $ npm i
- $ npm run dev
Expected behavior
Vue results in error:
error when starting dev server:
Error: Build failed with 1 error:
node_modules/pinia/dist/pinia.esm-browser.js:6:31: error: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "effectScope"
at failureErrorWithLog (/......./node_modules/esbuild/lib/main.js:1449:15)
at /......./node_modules/esbuild/lib/main.js:1131:28
at runOnEndCallbacks (/......./node_modules/esbuild/lib/main.js:921:63)
at buildResponseToResult (/......./node_modules/esbuild/lib/main.js:1129:7)
at /......./node_modules/esbuild/lib/main.js:1236:14
at /......./node_modules/esbuild/lib/main.js:609:9
at handleIncomingPacket (/......./node_modules/esbuild/lib/main.js:706:9)
at Socket.readFromStdout (/......./node_modules/esbuild/lib/main.js:576:7)
at Socket.emit (events.js:314:20)
at Socket.EventEmitter.emit (domain.js:483:12)
Are the vue an Pina version not compatible...? Any help would be appreciated here.
Kind Regards,
Wzz
spking11, frederikwagner, kristianbwagner, thalesagapito, haotan19 and 1 more
Metadata
Metadata
Assignees
Labels
No labels