-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Runtime error in development builds but not production #9450
Comments
Same behaviour for me, not found cause for now. |
Facing same issues in React Markdown only with Parcel. |
Facing this as well. Does anyone know of a workaround? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
Facing this as well |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've got an interesting case of a project that has a runtime error in development builds but not production builds. I've been able to create a minimal example that demonstrates the issue:
Archive.zip
It's triggered in this project using the React Markdown library. Doing a bit of digging into it I do believe it's a Parcel bug although my understanding of the workings of Parcel mean that I can't be 100% sure. It looks like there's an issue with a dependency chain that should resolve to a const exported from a module within a package. In development mode, the const ends up undefined, and indeed no source map for the module appears in the browser at runtime. Here's the stack trace:
Note, this package has a dependency that requires the Parcel setting for supporting package exports - not sure if that's related or not:
I've been able to replicate this issue both with 2.10.3 and 2.9 (the first version to support package exports).
The text was updated successfully, but these errors were encountered: