Skip to content

Commit

Permalink
build(all) upgrade node from 16 -> 18
Browse files Browse the repository at this point in the history
node 17 switched to openssl 3, which has some incompatibilities with
older versions, see https://nodejs.org/en/blog/release/v17.0.0#openssl-3-0

webpack 4 relies on the older openssl version, only webpack 5 and newer
uses openssl 3, see
webpack/webpack#14532 (comment)
webpack/webpack#14584

That's why we use the --openssl-legacy-provider node option when running
webpack.
  • Loading branch information
mt-dfrey committed Oct 5, 2023
1 parent 8c62758 commit c3b62a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -2,7 +2,7 @@ version: 2.1

docker_defaults: &docker_defaults
docker:
- image: circleci/node:16-stretch-browsers
- image: cimg/node:18.14.2-browsers
working_directory: ~/mt-link-javascript-sdk

attach_workspace: &attach_workspace
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
16
18
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -10,7 +10,7 @@
"author": "Moneytree",
"license": "MIT",
"scripts": {
"build": "rm -rf dist && webpack",
"build": "rm -rf dist && NODE_OPTIONS=--openssl-legacy-provider webpack",
"prepareRelease": "npm run build && git add dist",
"createChangelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"version": "npm run prepareRelease && npm run createChangelog",
Expand Down

0 comments on commit c3b62a7

Please sign in to comment.