Skip to content

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

Closed
@kubajmarek

Description

@kubajmarek

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.

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