Skip to content
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

Upgrade Docker image to NodeJS 17 #55

Merged
merged 2 commits into from
Jan 3, 2022

Conversation

DasSkelett
Copy link
Member

The upgrade to NodeJS 17 has been blocked by create-react-app/react-scripts: #22
There were some changes in Node 17, most importantly it switched to OpenSSL 3.0, which removed a bunch of older Hash functions that some Node packages like webpack relied on. create-react-app 5.0.0 has switched to a newer webpack release, and as far as I can tell works on Node 17 (and 16) now.

Changes

react-scripts is upgraded to ^5.0.0.
@types/react and @types/react-dom are upgraded to their latest 17.x release, to match their non-types counterparts.
The frontend files are built using Node17 in the Docker image.

Closes #22

@DasSkelett DasSkelett added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 3, 2022
@DasSkelett DasSkelett requested a review from GoliathLabs January 3, 2022 18:01
Copy link
Member

@GoliathLabs GoliathLabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DasSkelett Haven't tested it yet but if you have already and things seem to work, I'll approve 😅

@DasSkelett DasSkelett merged commit 6e4e7ad into freifunkMUC:master Jan 3, 2022
@DasSkelett DasSkelett deleted the nodejs-17 branch January 3, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch over to nodejs 17
2 participants