fix: Node 17 openssl issue

This commit is contained in:
Łukasz Holeczek 2021-12-09 11:15:36 +01:00
parent d732633eaa
commit a4f354c7e1
2 changed files with 17 additions and 3 deletions

View File

@ -66,7 +66,10 @@ $ yarn install
``` bash ``` bash
# dev server with hot reload at http://localhost:3000 # dev server with hot reload at http://localhost:3000
$ npm start $ npm start
# if you use Node 17+ use this command instead of `npm start`
$ npm run start:n17
``` ```
or or
@ -74,6 +77,9 @@ or
``` bash ``` bash
# dev server with hot reload at http://localhost:3000 # dev server with hot reload at http://localhost:3000
$ yarn start $ yarn start
# if you use Node 17+ use this command instead of `yarn start`
$ yarn start:n17
``` ```
Navigate to [http://localhost:3000](http://localhost:3000). The app will automatically reload if you change any of the source files. Navigate to [http://localhost:3000](http://localhost:3000). The app will automatically reload if you change any of the source files.
@ -85,6 +91,9 @@ Run `build` to build the project. The build artifacts will be stored in the `bui
```bash ```bash
# build for production with minification # build for production with minification
$ npm run build $ npm run build
# if you use Node 17+ use this command instead of `build run build`
$ npm run build:n17
``` ```
or or
@ -92,6 +101,9 @@ or
```bash ```bash
# build for production with minification # build for production with minification
$ yarn build $ yarn build
# if you use Node 17+ use this command instead of `yarn build`
$ yarn build:n17
``` ```
## What's included ## What's included

View File

@ -13,11 +13,13 @@
"license": "MIT", "license": "MIT",
"author": "The CoreUI Team (https://github.com/orgs/coreui/people)", "author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
"scripts": { "scripts": {
"build": "react-scripts --openssl-legacy-provider build", "build": "react-scripts build",
"build:n17": "react-scripts --openssl-legacy-provider build",
"changelog": "auto-changelog --starting-version 4.1.0 --commit-limit false --hide-credit", "changelog": "auto-changelog --starting-version 4.1.0 --commit-limit false --hide-credit",
"eject": "react-scripts eject", "eject": "react-scripts eject",
"lint": "eslint \"src/**/*.js\"", "lint": "eslint \"src/**/*.js\"",
"start": "react-scripts --openssl-legacy-provider start", "start": "react-scripts start",
"start:n17": "react-scripts --openssl-legacy-provider start",
"test": "react-scripts test", "test": "react-scripts test",
"test:cov": "npm test -- --coverage --watchAll=false", "test:cov": "npm test -- --coverage --watchAll=false",
"test:debug": "react-scripts --inspect-brk test --runInBand" "test:debug": "react-scripts --inspect-brk test --runInBand"