Closed juliusfriedman closed 3 months ago
I cannot reproduce this issue on my end. need more information
maybe relate to ur version
What can't you reproduce? Locally when I build in production mode I only see the component rendered on the Home page but not the imported data of the router-view.
Are you saying when you build in production mode you are able to view the entire page and browse to home and about pages?
Let me know what other information I could possibly provide..,
Thank you!
P.s Have tried multiple versions of vue and vue-router... and removing the line of vue-router from the externals definition solves the problem but costs another 80kb
This is what I see in prod mode...
I tried removing the external
configuration for vue-router
in vite.config.ts
under rollupOptions
, and everything worked fine.
You might want to check the issues in the vue-router
repository for more information.
Vue version
^3.4.21
Link to minimal reproduction
https://github.com/juliusfriedman/vue-project
Steps to reproduce
Run project
What is expected?
Entire page loads
What is actually happening?