-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Primitives is not defined with parcel 2 build command output #1915
Comments
Sounds like a duplicate of #1317. The issues with ESM compatibility are deeper than just the default exports. @andrewvmail please join us at #1891 where we attempt to fix the browser and ESM compatibility, and discuss how the library will further develop in order to become isomorphic. It would help out greatly if you could test #1891 using parcel! |
Just tried again using parcel 2.6.2. Parcel build still produces error. Identical problem to this one too #1786 |
"parcel": "^2.6.2",
|
Here is a hot fix until parcel gets updated. https://gist.github.com/andrewvmail/a94a5a3671a8f58300c3163d07042686 |
Is this fixed? I'm seeing the same error here in my project. My react version is 16.14.0, using Parcel 2.12.0, nodejs 16.20.2. |
Using @react-pdf/renderer 2.3.0" and latest parcel 2, production build, builds fine but opening the app you will see
The reference error leads to primitives in the source map.
Minimal reproduction
https://github.com/andrewvmail/parcel-react-pdf-bug-demo
Thanks in advance!
The text was updated successfully, but these errors were encountered: