Vue-material: vue-router v3.0.2 causes MdRouterLinkProps to fail

Created on 26 Nov 2018  路  2Comments  路  Source: vuematerial/vue-material

After updating vue-router to version 3.0.2 a utility MdRouterLinkProps fails. I don't invoke it directly but it is used somewhere internally.

I found the reason: router-link is now registered with a name in a Pascal case, whereas here it is expected to be in kebab case. See these changes https://github.com/vuejs/vue-router/pull/1842/files.

Possible workaround:

Vue.use(VueRouter);

Vue.component('router-link', Vue.options.components.RouterLink);
Vue.component('router-view', Vue.options.components.RouterView);

Most helpful comment

This fix is not present in version 1.0.0-beta-10.2 I have the same issue with the md-button component, how to get this fix ?

All 2 comments

Thanks, this helped! Hope it's going to get merged...

This fix is not present in version 1.0.0-beta-10.2 I have the same issue with the md-button component, how to get this fix ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexMugen picture alexMugen  路  23Comments

praneetloke picture praneetloke  路  39Comments

tudor33sud picture tudor33sud  路  15Comments

mygnu picture mygnu  路  40Comments

akaSybe picture akaSybe  路  20Comments