Component won't show: `Component is missing template or render function`
Closed this issue · 2 comments
ThaDaVos commented
I am using https://github.com/antfu/unplugin-vue-components
to automatically load all my components, including the SVG ones - but when I use it - it won't show and my console shows the following warning: Component is missing template or render function
jpkleemans commented
Hi, did you load viteSvgLoader()
in your vite.config.js
file? If yes, then I think unplugin-vue-components doesn't pipe components through the loaded vite plugins. Maybe it's best then to contact them about this.
ThaDaVos commented
It does work with other loaders, like the markdown one - and this other one works:
unplugin/unplugin-vue-components#9
Also, I am not even loading it through that plugin and it doesn't work: