Vue3, Router4 problem when using externals #17534
-
Describe the bugonly displays html comment vnode where router import should be. Reproductionhttps://github.com/juliusfriedman/vue-project Steps to reproduceJust run and build project in production mode (debug mode doesn't have the issue) System InfoAll systems but only when externalizing all depencies in production mode, if I run in debug or if I remove the externalization for vue-router everything works as expected, if I instead try to internalize vue and externalize vue-router other strange issues occur. Used Package Managernpm LogsNo error in console etc. Validations
I originally made this issue in VueJs/Router -> here but it was converted into a discussion with no answer.... See also my question about this same problem on StackOverflow Thanks in advance for your help! If you require any additional information please let me know and I will provide ASAP! One other question I had was how to enable the use of externals while debugging it doesn't seem supported in vite currently... #6582 I also notice that if I set |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't find any bug by Vite in your reproduction. I see |
Beta Was this translation helpful? Give feedback.
I don't find any bug by Vite in your reproduction.
I see
https://cdn.jsdelivr.net/npm/vue-router@%5E4.3.3/+esm
importinghttps://cdn.jsdelivr.net/npm/vue@%5E3.4.29/+esm
which is different from what you use (https://cdn.jsdelivr.net/npm/[email protected]/+esm
). Mixing two versions of Vue would cause problems.