Skip to content
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

fix: fix require @react-pdf/primitives from CJS #2510

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

wojtekmaj
Copy link
Contributor

In #2409 I missed changing the extension of CJS code to .cjs, resulting in (inaccurate) ERR_REQUIRE_ESM error thrown in Node in CJS environment.

Copy link

changeset-bot bot commented Jan 18, 2024

🦋 Changeset detected

Latest commit: 894ebdf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@react-pdf/primitives Patch
@react-pdf/layout Patch
@react-pdf/render Patch
@react-pdf/renderer Patch
@react-pdf/examples Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Owner

@diegomura diegomura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@diegomura diegomura merged commit 42bbbda into diegomura:master Jan 18, 2024
1 check passed
@wojtekmaj wojtekmaj deleted the fix-primitives branch January 18, 2024 14:23
@gabrielhamel
Copy link

gabrielhamel commented Jan 18, 2024

arfff thx i didn't figure out why i have esm errors in my project 👍

@wojtekmaj
Copy link
Contributor Author

No need to thank me, I was the one to mess it up in the first place 🤣

@gabrielhamel
Copy link

Yeah i saw that ^^ you managed to broke an +13k⭐️ project for few hours. It's happen sometimes ^^
That recall me that i need to freeze my npm package versions and doesn't trust the carret prefix in package.json !

@wojtekmaj
Copy link
Contributor Author

Carret is fine, unless you fail to commit your lockfile, which you definitely should.

mskec pushed a commit to mskec/react-pdf that referenced this pull request Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants