You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating the dist using npx parcel build --no-scope-hoist solves this, but this means the react-pdf import for primitives is being caught by parcel's tree shaking, which I believe should be considered a bug. Mainly not sure if this is an issue for here, or parcel currently.
Bless you @itswyll! This is the only answer that worked for me.
I'm not sure why these related issues are getting closed, I'm still having the same problem on the latest @react-pdf/renderer and Parcel without --no-scope-hoist or another hack.
Describe the bug
I'm currently running into the exact same issue listed here: #1786
This is running on Parcel V2 with React 18, and ReactPDF V3.
Comparing to this same issue here #1915, the main thing I notice is that I'm using npm and them yarn.
I'm still able to run the app normally while doing development. It's explicitly the dist build with this issue.
To Reproduce
dist/
folderserve
orhttp-server
Screenshots
The text was updated successfully, but these errors were encountered: