Currently, I am working with Nuxt.js and dealing with some dynamic routes. The folder structure I have set up looks like this:
- pages
- product
- _slug.vue
For linking to the route, I am using the following code:
<nuxt-link :to="{ name: 'product-slug', params: { slug: product.slug } }">
Although the link works perfectly fine and displays the correct URL, I am consistently seeing a bothersome red error in my console:
[Vue warn]: Invalid component name: "pages/product/_slug.vue". Component names are required to adhere to valid custom element name standards outlined in the HTML5 specification.
https://i.sstatic.net/EYKRl.png
I have tried looking for a solution to this issue, but unfortunately, I have found little help so far: https://github.com/nuxt/nuxt.js/issues/165