-
Notifications
You must be signed in to change notification settings - Fork 28
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
UpdateToNode18 #789
UpdateToNode18 #789
Conversation
Just hit update to see where the CI is failing. A new node version is desperately needed but we can slowly upgrade to the latest version (v22) |
Across a lot of different node versions I tried (18, 19, 20), the solution to the current build failing is to update
To apply the polyfills ourselves we can either 'eject' the create react apps config (one way irreversible) to access the config or override the existing config via craco/react-app-rewired. |
@angrave After doing some more reading, I think the best option is to eject the create react app config. The app has been stably running for the last few years so we're past the initial prototyping phase where we wanted to hide away the config details. |
@harsh183 I googled the error below "Error: error:0308010C:digital envelope routines::unsupported" extract below from build,
|
@angrave yeah I was also getting this error locally. Basically this is caused by an old version of react scripts (0.4) currently and moving up to 0.5 will fix it, but that upgrade is another can of worms with react scripts hiding away the launch config. We can also just allow unsafe openssl, but that feels like a bad short term solution over just fixing the configuration long term (react scripts eject) |
Okay, I'll ignore this PR for now, but will leave it open so the comments are handy. (I think we probably should have put these comments & discussion in a github issue instead of a PR, ... but whatever). FYI One idea I had was starting from a blank slate (e.g. latest react (5?) project) and slowly re-adding required projects., starting with latest versions .I didn't do this because i) we don't have a good testing framework. ii) dva is obviously a blocking component. Looking at this today, dva seems to be used a small shim around redux, (to make it easy to have scope/namespaces) |
Please merge/rebase latest changes in staging and re push. |
@angrave the build is passing 🥳 , I can update the documentation once we merge to now have node 18. |
No description provided.