-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 Node JS from 16 to 20 #31937
Comments
We have to update outdated packages like webpack, karma, etc to properly shift it node 18. Otherwise it is breaking with peerDependency issues |
There are several GitHub Action upgrades that haven't been merged yet, some of them state that they now use Node 20 as the default environment. Are we blocked on those upgrades until this is done, or can those be merged independently? https://github.com/openedx/edx-platform/pulls?q=is%3Apr+is%3Aopen+dependabot |
Those can be merged independently because the environment the action uses for itself does not impact the version of node we setup for our testing during the run of the action. |
Given that we need to get to Node 20 now anyway, I've updated this ticket to aim for Node 20 instead of Node 16 |
@abdullahwaheed can you quickly summarize what is blocking the upgrade from node 16 to node 18 that you've been working on so far? |
while upgrading to Node 18, we faced compatibility issues with some packages, that uses webpack, since edx-platform uses webpack 2 while currently webpack is at v5. More details can be found out here |
The first thing I tried when looking into this was upgrading from node I encountered a few issues and worked through them (details in this PR: #34308) One of the main issues is https://www.npmjs.com/package/karma-selenium-webdriver-launcher, which has |
There's another issue with being able to regenerate We should remove npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin"} (current: {"os":"linux"})
npm ERR! notsup Valid os: darwin
npm ERR! notsup Actual os: linux I'm currently working around this in my node 18 testing branch by manually removing it from the |
I made a draft PR upgrading to node 18 #34311 I've managed to get it to a point where webpack 5 builds everything properly, and most (but not all) of the js tests in CI are passing. |
I've got a PR to add node 20, it looks like the current dependencies will work with both: #34998 |
Deprecation of Node 18 has been announced and will be accepted on July 4th |
Abstract
Node 16's support will end on September 11, 2023. So we have to upgrade node JS to v18 before that.- We've now upgraded all released software to Node 18.Node 18 support will end on Apr 2025. So we have to get to node 20 before Sumac.
Extras
Project should use
.nvmrc
to have a consistent node versionWe have to update Readme accordingly.
Upgrade Node JS from 16 to 18
Tasks
The text was updated successfully, but these errors were encountered: