-
-
Notifications
You must be signed in to change notification settings - Fork 995
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
createPinia failed in Vue 2 #1199
Comments
Seems related to this issue - ie. Vue Demi failing in Vue 2 mode in the environment that does not allow |
You have starters at https://github.com/piniajs/example-vue-2-vite/ |
I have a similar error:
With Vue 2 with webpack instead of Vite |
You probably need to tell webpack how to handle |
Reproduction
https://codesandbox.io/s/competent-tree-bvzyvk?file=/src/main.js
Steps to reproduce the bug
Basic setup with latest vue2
Follow the instruction here https://pinia.vuejs.org/getting-started.html
using
Expected behavior
should run without error
Actual behavior
the store failed to initialize with error
The text was updated successfully, but these errors were encountered: