I am getting the following error:
node_modules/@types/react-redux/index.d.ts(8,24): error TS2307: Cannot find module \'redux\'.
despite hav
If you encounter the same issue with the following react version "^16.8.6" verify if the npm redux package
Package.json
"dependencies": {
"@types/jest": "24.0.13",
"@types/node": "12.0.3",
"@types/react": "16.8.19",
"@types/react-dom": "16.8.4",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-redux": "^7.0.3",
"react-scripts": "3.0.1",
"redux": "^4.0.1",
"typesafe-actions": "^4.4.0",
"typescript": "3.5.1"
},
if not installed just do npm install redux
no need for npm i @types/reduxas Redux package provides its own type definitions, so you don't need @types/redux installed!