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
You should just add the needed types to your project, like this:
npm install --save-dev @types/react-redux
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With