Skip to content

Instantly share code, notes, and snippets.

@Arique1104
Created December 13, 2023 20:57
Show Gist options
  • Save Arique1104/dd3a6865d0a1571dddd52c1a56a885e6 to your computer and use it in GitHub Desktop.
Save Arique1104/dd3a6865d0a1571dddd52c1a56a885e6 to your computer and use it in GitHub Desktop.

Update on Node20 update III 12/7/23

I have worked diligently to get the tests to pass now. Within our session we went from all failing tests to 50% passing and down again. We’ve reached a coding stopping point.

  • Our error message? error spoke@13.1.0: The engine "node" is incompatible with this module. Expected version ">=20.10.0". Got "18.18.2" error Found incompatible module.
  • This sent us down a rabbit hold of what was happening. Our error messages guided us all the way to recompose.
  • Due to recompose utilizing a deprecated version of core-js, we are now needing to refactor all the code.
  • This refactor is a heavy lift. With substantial changes that need to occur on every single UI file.
  • With 37 files that contain zero quick fixes, we need to pace ourselves and get ready to learn some principals of react, together.
  • But not to fear, we have @Ruby Engelhart and Stevie Ambrose who showed up to tonight’s Hackathon to tackle this big problem in smaller bites.
  • The documents that will be prioritized for this refactor are the following:
    • Stevie will be working on src/components/Login.jsx
    • Ruby will be working on src/components/TopNav.jsx
  • Next Thursday, expect their gists where they will show us where they went in the code and where they need to go next. Together they will attempt to learn as much as they can about successfully refactoring these documents. And each of us will grow in understanding the scope of this endeavor.
  • It’s time to learn how to do this together and grow as a community.

Here are some of the resources that we are using to learn.

  • Furia’s Ridiculously long gist! A walkthrough on how to learn to upgrade Spoke node version. Follow along to see a running log of all the changes that have already successfully been configured. I will be trimming this document down so that anyone can walk through the changes I was able to deliver and the error messages that Daniel has helped me overcome through dependency upgrades.
  • The Node20 Upgrade Pull Request contains a log of all the commits that were done to get this Node-upgrade started. See what files are changing, and why.
  • This is the branch that contains all the Node-Upgrade code thus far. You can download the branch to create your own forked branch and help us tackle these 37 documents that need some serious facelifts.

gh repo clone StateVoicesNational/Spoke_Hackathon_Fork npm install yarn install yarn dev

Running log of all terminal entries in order

Follow this gist to see the long list of terminal commands run to migrate from version 2 of aws-sdk to version 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment