Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find a declaration file for module 'react-redux'.

Got an issue with typescript and react + redux

Could not find a declaration file for module 'react-redux'. '/home/andrew/miramir/src/js/node_modules/react-redux/lib/index.js' implicitly has an 'any' type. 

Trying to get Provider from react-redux

import { Provider } from 'react-redux'; 

How i can fix it? Thanks

like image 716
Андрей Гузюк Avatar asked Jan 14 '17 06:01

Андрей Гузюк


1 Answers

You should just add the needed types to your project, like this:

npm install --save-dev @types/react-redux 
like image 115
RoelVB Avatar answered Oct 08 '22 04:10

RoelVB