Closed alvarosabu closed 11 months ago
I just want to note that if you are using Quasar + Vite, then to solve the problem, the code must be inserted into viteVuePluginOptions in quasar.config.js
file:
viteVuePluginOptions: {
template: {
compilerOptions: {
isCustomElement: (tag) =>
tag.startsWith("Tres") && tag !== "TresCanvas",
},
},
},
Describe the bug Since we are using a Custom Renderer, the main instances of Vue don't recognize the Tres components and throw these annoying warnings that will confuse users.
One way around this is to add this to the
vite.config.ts
:But that's not ideal.
Expected behavior No warnings
Screenshots
System Info Output of
npx envinfo --system --npmPackages '{vite,@tresjs/*, three, vue}' --binaries --browsers
Additional context Add any other context about the problem here.