Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3, Router4 problem when using externals #17526

Closed
7 tasks done
juliusfriedman opened this issue Jun 19, 2024 · 0 comments
Closed
7 tasks done

Vue3, Router4 problem when using externals #17526

juliusfriedman opened this issue Jun 19, 2024 · 0 comments

Comments

@juliusfriedman
Copy link

juliusfriedman commented Jun 19, 2024

Describe the bug

only displays html comment vnode where router import should be.

Reproduction

https://github.com/juliusfriedman/vue-project

Steps to reproduce

Just run and build project in production mode (debug mode doesn't have the issue)

System Info

All 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 Manager

npm

Logs

No 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 resolve.alias to the same values I use in rollupOptions.output.paths that the bundles seem to resolve from the CDN and in debug mode I FINALLY get the same blank page I get in prod mode....

@vitejs vitejs locked and limited conversation to collaborators Jun 20, 2024
@sapphi-red sapphi-red converted this issue into discussion #17534 Jun 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant