Skip to content

Conversation

@jakes-space
Copy link

Vue 3 + Vite was removing the template on prod, resulting in empty components being mounted.

Hopefully this note saves others some frustration. I spent a couple hours figuring out why my components were working on dev but not prod.

And thank you for this handy helper module! This should be built into Vue, in my opinion.

Vue 3 + Vite was removing the template on prod, resulting in empty components being mounted.
@pearofducks
Copy link
Owner

That's interesting, I can't reproduce that here with a trivial example. Could you help me reproduce it?

https://github.com/pearofducks/mount-vue-component-counterrepro

@jakes-space
Copy link
Author

I'll try to reproduce with a minimal example next week. Enjoy your weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants