-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
Breaking change for node versions < 20 #201
Comments
I’m not sure I understand why that setting affects your package. Unless you were trying to build it from source, I don’t understand why the engines setting would impact you? |
Getting the same. Yarn is throwing an error for me. I think engine compatibility with deps has been a thing for a long time now. Npm added it in 2010 npm/npm#6 Fwiw, there is no compiled version in js land, so everything in js land is indeed using direct source. |
@bvaughn my project is failing during installation, specifically when running |
Can confirm we're getting the exact same error. |
That's interesting. I wouldn't have expected that since there's no postinstall script or anything 🤔 Hmm. I will roll that change back. |
Sorry about this, folks. Hopefully [email protected] resolves this issue for everyone? |
The engines field imposes restrictions on consumers (docs). On another note, could you also please remove the requirement for
|
The What you're reporting here is a Yarn v1 bug. Yarn should not be warning about other engines. You can silence the warning for yourselves though by adding the following lines to your
|
Wow, I completely misunderstood the concept of the |
No, I'm pretty sure that I misunderstood it (at least the scope of it). I didn't think it would impact anything other than if you were executing package scripts within the repo. As this issue has shown me, it affects installs as well 😭 I'm really sorry that it caused this issue for others, and I'd like to fix it, I just don't have as much free time as I used to 🙇🏼 I appreciate everyone being patient. |
Well, if it's only about keeping your PNPM versions straight, you could probably enable corepack. You can specify a |
Hmm, Corepack is still experimental isn't it? Either way, until I've done that in all of my projects, it seems like it's too easy to forget to use it and just run |
Well, yeah. It is still experimental and there are still vivid discussions about the future of it. In my experience it is still worth to use it, because it simplifies the development of multiple projects on the same device without a lot of effort. Basically you would only need to set the
|
react-error-boundary
version: 4.1.0node
version: 18.12.1npm
version: 8.19.2What you did:
Upgraded from version
4.0.3
to4.1.0
What happened:
Problem description:
Version
4.1.0
inadvertently introduced a breaking change with the addition of theengines
field topackage.json
.Up until this point this package worked fine with versions of node older than 20.
Suggested solution:
Reduce the
engines
's node version demand.The text was updated successfully, but these errors were encountered: