Skip to content

Primitives is not defined with parcel 2 build command output #1915

@andrewvmail

Description

@andrewvmail

Using @react-pdf/renderer 2.3.0" and latest parcel 2, production build, builds fine but opening the app you will see
image

The reference error leads to primitives in the source map.

Minimal reproduction
https://github.com/andrewvmail/parcel-react-pdf-bug-demo

git clone https://github.com/andrewvmail/parcel-react-pdf-bug-demo
cd parcel-react-pdf-bug-demo
yarn
parcel build src/index.html
cd dist
npx http-server 
# open localhost:8080

# another terminal
parcel serve src/index.html
# no console error

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions