-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
build.rollupOptions.external doesn't work. #1528
Comments
build.rollupOptions.external
doesn't work.
build.rollupOptions.external
doesn't work.
I am experiencing the same during testing of vite2. Initial review indicates that rollup's Opening the erroring chunk and adding Maybe moving the |
Note: this is because The even better fix is to ask Apollo client to fix its default import so that it doesn't transitively import React when it claims to be framework agnostic. |
I agree with the "even better" fix, completely missed the transitive react import on the main Proposed solution works like a charm, thanks for the quick reply! |
Maybe this will work with you, Its good alternative for who is having problems with apollo Astrid-Client |
Describtion
The Vite configuration file specifies the option
build.rollupOptions.external
setting, but it has no effect.When running the
vite
command, the following error still appears:Reproduction
Please provide a link to a repo that can reproduce the problem you ran into.
A reproduction is required unless you are absolutely sure that the the problem is obvious and the information you provided is enough for us to understand what the problem is. If a report has only vague description (e.g. just a generic error message) and has no reproduction, it will be closed immediately.
vite.config.ts
System Info
vite
version:2.0.0-beta.12
MacOS Big Sur
v15.5.1
pnpm 5.15.0
Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: