Closed hcorson-dosch-usgs closed 1 year ago
This worked. Thank you.
No prob!
So the
env NODE_OPTIONS=--openssl-legacy-provider
piece is related to versioning changes b/w node and webpack?
Right - sounds like node changed to a later version of OpenSSL, which broke some part of webpack, and you have to use this workaround. It looked like webpack wasn't included in this package.json
, but I opted to include the workaround just in case and so that we have a consistent set-up across our builds.
This PR updates our npm configuration to use
node
version 20 and re-point the docker build todebian:stable
, becausedebian:stretch
has been deprecated.To test
node -v
nvm use 20
[If it's not installed, install latest version of node by runningnvm install 20.0.0 --reinstall-packages-from=14.17.0
]npm install
npm run serve
Changes:
Dockerfile
, point to to a stable debian release, instead of the archived stretch release, using the debian:stable tag listed as a current tag on Dockerhub.Dockerfile
, get and install the current version of node (version 20)node-sass
indevDependencies
and instead specify latest version ofsass
, asnode-sass
is not supported for node 20.Node-sass
is now deprecated, and the makers recommend switching tosass
package.json
addenv NODE_OPTIONS=--openssl-legacy-provider
to all 'serve' and 'build'scripts
to overcome a lack of support for digital envelope routines innode
17+. See this issue and this commentpackage.json
in what-is-drought.npmrc
file in root directory with the content legacy-peer-deps=true to overcome peer dependency conflicts betweencli-plugin-eslint
,eslint
, andbabel-eslint
. See this issue and this comment.First . . .
Then check for accessibly compliance
Then run Browserstack; check that application works on . . .
Finally . . .
After making a pull request