-
Notifications
You must be signed in to change notification settings - Fork 3
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
Attempt to upgrade to node 18 #445
base: master
Are you sure you want to change the base?
Conversation
[diff-counting] Significant lines: 8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Will, the upgrade to node 18 works for me. I think that the considerations for vite over react-scripts and overhauling the test script are important to work on, but we can first make the move to node 18 so that it's easier to develop those changes :)
Summary
This PR works to upgrade to the next major node version - 18.
Node 18 introduces a lot of security improvements and many libraries we want to use requires node 18 (ie. OpenAI)...
Also does not run the test script - replaced with a no-op command
:
as I think Jest will break too much and isn't worth it right now.Be sure to update your global default node if you don't want to manually type out
nvm use 18
every time!->
PR Type
Mobile + Desktop Screenshots & Recordings
QA - Test Plan
Breaking Changes & Notes
Using the SSL flag for our react-script functions is not actually ideal - as it definitely introduces some security concerns - but I think that this is for the best.
IE. react scripts only really supports node 16. This is the main workaround I could find for react-scripts. The long term solution would be to change from react-scripts to vite (which I attempted earlier but required node 18 - but may attempt once again.)
Added to documentation?
What GIF represents this PR?
gif