Closed CraigRamey closed 1 year ago
oh, node error @testing-library/react@14.0.0: The engine "node" is incompatible with this module. Expected version ">=14". Got "10.24.1"
The node version for the Netlify needs to be set to at least v14. It's on v10 right now.
error @testing-library/react@14.0.0: The engine "node" is incompatible with this module. Expected version ">=14". Got "10.24.1"
maybe we need to do this? https://www.elian.codes/blog/21-12-03-set-your-node-version-in-netlify/ @lucasbento. or maybe add me to the team on netlify?
@pvinis normally you could do it with a simple .node-version
file
https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript
It will help everyone to be on the same page, instead of in 6 month "Oh I need to update this website but I have no idea what's the node version"
@pvinis setup on Netlify is quite odd and I can't add anyone else to the team without paying, unfortunately.
Would be great if it's possible to do by code like @flexbox suggested, I'll take a look tomorrow again to be sure that the team option is not available for OSS.
@pvinis normally you could do it with a simple
.node-version
file https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascriptIt will help everyone to be on the same page, instead of in 6 month "Oh I need to update this website but I have no idea what's the node version"
Thanks for the advice. I've set the version of node to 16.19.1 and it seems to be fine now. Originally attempted to set it to the LTS version 18.14.2, and that ran into a different issue that would need to be addressed.
Thank you so much @CraigRamey! What's your twitter account? I want to make sure to celebrate your contribution proper 🎉
I think it's https://twitter.com/theramey. thanks for the PR! 💜
Summary
Saw this tweet by Kelset and decided to take a few minutes to upgrade some deps.
Upgraded React to 18.2.0, and @testing-library/react to 14.
Test Plan
Tests pass, app still seems to work as it previously did.
Checklist