Skip to content

vue beta.7 may be causing problems with vue-router and vuex #44

@ais-one

Description

@ais-one

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.

image

If change vue and sfc compiler to beta.4, the error will go away

If you comment out , it will also not show the error, but you will not have any routing

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"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions