I am using Nuxt.js and have some dynamic routes. My folder structure is this:
- pages
- product
- _slug.vue
I link to the route like this:
<nuxt-link :to="{ name: 'product-slug', params: { slug: product.slug } }">
It works fine, it shows the correct URL and also directs the page fine, however, I am getting an annoying red error in my console:
[Vue warn]: Invalid component name: "pages/product/_slug.vue". Component names should conform to valid custom element name in html5 specification.
I have found this issue, but to little avail: https://github.com/nuxt/nuxt.js/issues/165
<nuxt-link :to="{ name: 'product/slug', params: { slug: product.slug } }">
? – Maragretmarala