-
-
Save adrianhajdin/bbe19d3a3055e3c7b66b0bfac25c5c49 to your computer and use it in GitHub Desktop.
{ | |
"name": "mern-stack-client", | |
"version": "0.1.0", | |
"private": true, | |
"proxy": "https://memories-project-part4.herokuapp.com/", | |
"dependencies": { | |
"@material-ui/core": "^4.9.10", | |
"@material-ui/icons": "^4.9.1", | |
"@material-ui/lab": "^4.0.0-alpha.58", | |
"@testing-library/jest-dom": "^4.2.4", | |
"@testing-library/react": "^9.3.2", | |
"@testing-library/user-event": "^7.1.2", | |
"axios": "^0.19.2", | |
"jwt-decode": "^3.1.2", | |
"material-ui-chip-input": "^1.1.0", | |
"moment": "^2.27.0", | |
"react": "^16.12.0", | |
"react-dom": "^16.12.0", | |
"react-file-base64": "^1.0.3", | |
"react-google-login": "^5.1.25", | |
"react-redux": "^7.1.3", | |
"react-router-dom": "^5.2.0", | |
"react-scripts": "3.4.1", | |
"redux": "^4.0.5", | |
"redux-thunk": "^2.3.0" | |
}, | |
"scripts": { | |
"start": "react-scripts start", | |
"build": "react-scripts build", | |
"test": "react-scripts test", | |
"eject": "react-scripts eject" | |
}, | |
"eslintConfig": { | |
"extends": "react-app" | |
}, | |
"browserslist": { | |
"production": [ | |
">0.2%", | |
"not dead", | |
"not op_mini all" | |
], | |
"development": [ | |
"last 1 chrome version", | |
"last 1 firefox version", | |
"last 1 safari version" | |
] | |
}, | |
"devDependencies": { | |
"@redux-devtools/core": "^3.9.0", | |
"@redux-devtools/dock-monitor": "^1.4.0", | |
"@redux-devtools/log-monitor": "^2.3.0", | |
"eslint-config-airbnb": "^18.2.1", | |
"eslint-plugin-import": "^2.22.1", | |
"eslint-plugin-jsx-a11y": "^6.4.1", | |
"eslint-plugin-react": "^7.21.5", | |
"eslint-plugin-react-hooks": "^4.2.0" | |
} | |
} |
Thanks man
"start": "export SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start", "build": "export SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build",
This worked for me. Just replace your start and build scripts with the above one.
Not sure if it's becasue I have windows, but I had to make the following modification on my package.json file for the client side:
"start": "set NODE_OPTIONS=--openssl-legacy-provider&& react-scripts start",
"build": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts build",
A bit different from what you posted but definitely fixed my issue with the "npm start"
"start": "export SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start", "build": "export SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build",
This worked for me. Just replace your start and build scripts with the above one.
Yes it is Working
[eslint] Failed to load config "react-app" to extend from.
Referenced from: C:\Memories Project\client\package.json
my code give this error can anyone help me
Yes, these changes have helped to run start the react app ,without producing any errors.
If any error occurs while downloading dependency just add "--legacy-peer-deps" to your command at the end and it will run