-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Uncaught ReferenceError: exports is not defined at version 3.3.18 and Parcel #8675
Comments
@irenlian Can you share the stacktrace leading to that |
It's strange there's no long Alternatively, if your application is using |
I also searched for |
For anyone who are searching for a workaround, here is what works for me:
with
|
I believe this is a quirk of Parcel, not a bug in how Apollo Client is packaged. Since nobody else has reported encountering this in a very long time and a workaround is available, I'm going to close this issue. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Intended outcome:
The version of
@apollo/client
is upgraded from 3.3.17 to 3.3.18 safely and the built application is running without issues.Actual outcome:
After upgrade and build without issues, the application fails from the start with a blank page and an error in console:
How to reproduce the issue:
.parcelrc
:npx parcel build src/index.html
Versions
I assume that this PR that corresponds this patch may still miss some side effects and should include some dependencies to avoid their truncation.
Since I have the same error but on other line of code if upgrading to 3.4.8, I assume that there could be more side effects.
The text was updated successfully, but these errors were encountered: