Skip to content

router-link generated cause warning from vue-router #6471

@dtgeorge

Description

@dtgeorge

After update vue-router from 3.1.5 to 3.5.1 got warning in console:

[vue-router] <router-link>'s tag prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#rem

b-nav-item (at least) with property "to" cause router-link generation. As far as I see vue router is preparing for the switching to new version (4 I guess) and produce such warnings.

Steps to reproduce the bug

Create b-navbar with b-nav-item with property "to" used.
Example:
<b-nav-item to="/Orders" >Link Text</b-nav-item>

Expected behavior

Now warnings in console

Versions

Libraries:

  • BootstrapVue: 2.21.2
  • Vue: 2.6.12
  • Vue Router: 3.5.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions