Since I updated our Vue.js app's node packages, I get the following warning in the browser console:
[vue-router] '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/#removal-of-event-and-tag-props-in-router-link. @ vue-router.esm.js:16
The info is pretty straight-forward, sure, BUT:
At the one place, where <router-link>
is in use, the deprecated tag
prop is not even applied:
<router-link
class="button-add"
:to="{
name: 'ItemEditorAdd',
params: { parent_item_id: item.id },
}"
:id="'button-' + item.id"
>
<i class="material-icons">add</i>
</router-link>
Furthermore, the installed vue-router package is not even in version 4 but in version 3, which correctly matches the installed vue.js in v2.6. The warning message gives me the impression, that the compatiblity checker assumes v4 is in use, though.
Excerpt from package.json:
"vue": "^2.6.12",
"vue-class-component": "^7.2.6",
"vue-cookies-ts": "^1.5.19",
"vue-i18n": "^8.24.4",
"vue-property-decorator": "^9.1.2",
"vue-router": "^3.5.1",
"vuex": "^3.6.2",
"vuex-class": "^0.3.2",
"vuex-oidc": "^3.10.2"
I am confused, and I couldn't find a solution here in StackOverflow or in vue-router Github issues.
Is this warning not fixable, but just a constant reminder to mind this when upgrading sometime in the future?? If so, why does it not check if tag
prop is really used - seems a bit spammy..
UPDATE
The problem also occurs in vue-router v3.5.2.
There is a GitHub vue-router issue (closed) and a Github boostrap-vue issue (open).