vue beta.7 may be causing problems with vue-router and vuex
This is not directly related to vite, but may be of interest for those who are using vuex, vue-router.
You can see a link to sample project that will cause this error here...
https://github.com/ais-one/vite-eg/tree/master/test
just do
npm i
npm run dev
and navigate to app on browser, you can see the error.
If change vue and sfc compiler to beta.4, the error will go away
If you comment out
The package information is below
"dependencies": {
"vue": "^3.0.0-beta.7",
"vue-router": "^4.0.0-alpha.9",
"vuex": "^4.0.0-beta.1"
},
"devDependencies": {
"vite": "^0.10.0",
"@vue/compiler-sfc": "^3.0.0-beta.7"
}