After upgrading Node.js, you may encounter errors when loading scripts.

If you’re seeing openSSL errors, try enabling legacy mode as follows:

export NODE_OPTIONS=--openssl-legacy-provider

"scripts": {
  "build": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production"
}