You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a problem getting templates inherit correctly, when extending a v-f-d generated component with a component that doesn't define a new template.
The template inheritance seems to work fine when running in Vite dev server, but in a production build I get [Vue warn]: Component is missing template or render function and the component fails to render.
I've found the following workarounds to get the production build work. Either:
Define super component also as a mixin, or
Add both child and super to components where child is being used.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having a problem getting templates inherit correctly, when extending a v-f-d generated component with a component that doesn't define a new template.
The template inheritance seems to work fine when running in Vite dev server, but in a production build I get
[Vue warn]: Component is missing template or render function
and the component fails to render.I've found the following workarounds to get the production build work. Either:
Both of these workarounds are commented out in this example: https://stackblitz.com/edit/v-f-d-templates?file=src%2FApp.vue
Is there something wrong with my Vite or TS configs, or is this a bug or limitation in vue-facing-decorator?
Beta Was this translation helpful? Give feedback.
All reactions