minesweeper-react-typescript
minesweeper-react-typescript copied to clipboard
OpenSSL error with newer Node version
When you try to run or build the application, you will receive the following error:
Error: digital envelope routines::unsupported
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED'
Possible cause of error can be found in this discussion: https://stackoverflow.com/questions/69665222/node-js-17-0-1-gatsby-error-digital-envelope-routinesunsupported-err-os
WORKAROUND: Modified the package.json file "app:start": "react-scripts --openssl-legacy-provider start", "app:build": "react-scripts --openssl-legacy-provider build", "app:test": "react-scripts --openssl-legacy-provider test",