-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
React Native 0.71.7 Jest config breaks with Node 18.16.1 #2520
Comments
I'm just going to roll back to node version |
Thanks Tyler, we had added the engine check earlier in the year but didn't realize it broke at 18.16 and up. I can look to modify it for now - perhaps see what I can do to fix this upstream in RN. |
Thanks! |
It's interesting, I was trying to setup the node engines check as per the documentation, but I feel like the compare is off. What I was trying with my current setup: If I go with this package json config and use 18.11.0 I fail.
What I wanted to end up doing was something like:
Now I suppose 16 is EOL at this point, so I can drop the third parameter which I thought was giving me trouble and move towards a config:
But that throws |
@frankcalise - I think you want:
That should exclude |
@coolsoftwaretyler yeah I tried that, it doesn't prevent you from installing with that version |
@frankcalise - would putting It's weird that you're getting errors for the other patterns and not this even without that setting. But I don't see it in the boilerplate, so maybe this would just force the issue? |
I checked this over upstream with RN and it was a node related issue that was fixed in later versions of 18 and 19. See facebook/react-native#36440 for more info |
Describe the bug
It looks like y'all have seen this in CI, which references the React Native issue: facebook/react-native#36440
On a fresh:
After dependency installations, I get this error with
yarn test
on Node v18.16.1:I was wondering if it makes sense to either:
Ignite version
8.9.1
Additional info
System
platform darwin
arch x64
cpu 8 cores Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
directory ContractRummy /Users/tylerwilliams/ContractRummy
JavaScript (and globally-installed packages)
node 18.16.1 /Users/tylerwilliams/.asdf/installs/nodejs/18.16.1/bin/node
npm 9.5.1 /Users/tylerwilliams/.asdf/plugins/nodejs/shims/npm
corepack 0.17.0
npm 9.5.1
yarn 1.22.11 /Users/tylerwilliams/.asdf/shims/yarn
create-vite 4.4.1
pnpm - not installed
expo 48.0.20 managed
Ignite
ignite-cli 8.5.1 /Users/tylerwilliams/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite
ignite src build /Users/tylerwilliams/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build
Android
java 11.0.15 /Users/tylerwilliams/.asdf/shims/java
android home - undefined
iOS
xcode 15.0
cocoapods 1.12.1 /Users/tylerwilliams/.asdf/shims/pod
Tools
git git version 2.42.0 /usr/local/bin/git
The text was updated successfully, but these errors were encountered: