Reputation: 1519
In reactJs after run
npm start
it gives
./src/index.js Module not found: Can't resolve 'react' in 'C:\Users...\src'
error.
this is my package.js
{
"name": "client-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@aspnet/signalr": "^1.0.4",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react-scripts": "^1.1.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
Upvotes: 2
Views: 2604
Reputation: 7822
Try removing package-lock.json
, run npm install
and then run npm start
again.
Upvotes: 5