Skip to content

Vue3 TypeScript setup with Router doesn't have router elements #5796

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

Closed
kubajmarek opened this issue Aug 16, 2020 · 0 comments · Fixed by #5798
Closed

Vue3 TypeScript setup with Router doesn't have router elements #5796

kubajmarek opened this issue Aug 16, 2020 · 0 comments · Fixed by #5798

Comments

@kubajmarek
Copy link

Version

4.5.3

Environment info

Node 12.13.1, macOS 10.15.6
(vue info command didn't work)

Steps to reproduce

Create new Vue project with following config:

{
      "useConfigFiles": true,
      "plugins": {
        "@vue/cli-plugin-babel": {},
        "@vue/cli-plugin-typescript": {
          "classComponent": false,
          "useTsWithBabel": true
        },
        "@vue/cli-plugin-router": {
          "historyMode": false
        }
      },
      "vueVersion": "3"
}

What is expected?

App.vue contains <router-link> to Home and About, and a <router-view>

What is actually happening?

App.vue is the same as without Vue Router included, so it has (almost) the same content as Home.vue.

haoqunjiang added a commit to haoqunjiang/vue-cli that referenced this issue Aug 17, 2020
haoqunjiang added a commit that referenced this issue Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant