[Vue warn]: Unknown custom element: <testimonial-photo-inner>

I just installed VueJS on my website and I am getting tons of console errors like the ones above. I'm not trying to create any Vue components (yet), but my site contains a few custom HTML tags.

Does Vue use any custom HTML tag (like not one in the HTML spec) as something that it needs to compile, and will it always complain about tags it doesn't recognize?

Can these warnings be turned off?

Please note: this is not a duplicate of the unknown Vue js custom element

The user is actually trying to create a Vue component.

+3


source to share


1 answer


You can use the ignoreElements config parameter to make Vue ignore the elements it shouldn't touch.

So, in your code, you most likely want to add:



Vue.config.ingoredElements = [
  'testimonial-photo-inner'
]

      

And include any other tags you can use that you don't want Vue to touch.

+3


source







All Articles