movies-javascript-bolt
movies-javascript-bolt copied to clipboard
Node 17 and Webpack
The problem is described here: https://github.com/webpack/webpack/issues/14532/.
The solution:
- "build": "webpack",
- "start": "webpack serve"
+ "build": "NODE_OPTIONS=--openssl-legacy-provider webpack",
+ "start": "NODE_OPTIONS=--openssl-legacy-provider webpack serve"
BUT this only works with Node 17, prior versions reject this setting.