I install yarn add react-router-dom and it shows error when import "react-router-dom"
Error message
./node_modules/react-router-dom/node_modules/warning/warning.js
Error: ENOENT: no such file or directory, open '/Users/krittiyaclark/Documents/my-portfolio-react/node_modules/react-router-dom/node_modules/warning/warning.js'
My package.json
{
"name": "my-portfolio-react",
"version": "0.1.0",
"private": true,
"dependencies": {
"gulp": "^3.9.1",
"gulp-changed": "^3.2.0",
"gulp-clean-css": "^4.0.0",
"gulp-rename": "^1.4.0",
"gulp-sass": "^4.0.2",
"gulp-uglify": "^3.0.1",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-mdl": "^1.11.0",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
Please help! I stuck for a long time. Thank you!
