jpkleemans/vite-svg-loader

[Vue warn]: Failed to resolve component:

Closed this issue · 1 comments

enviroment

"vite-svg-loader": "^3.1.2",
"vite": "^2.8.0"

Error

[Vue warn]: Failed to resolve component: temperature
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at <TemAndHumi>
at <Board onVnodeUnmounted=fn ref=Ref< undefined > >
at <RouterView>
at <App>

detail

I import a temperature.svg as a component in my TemAndHumi.vue component,and use it by <temperature></temperature>
.but it produced a warn in console.I don't why it appeard in.

Oops... I don't add setup in <script> ...