Could not find a declaration file for module '@brainhubeu/react-carousel'
See original GitHub issueWhen using on react 16.2.0 the error below is thrown:
ERROR in ./node_modules/@brainhubeu/react-carousel/lib/style.css [0] Module parse failed: Unexpected token (1:0) [0] You may need an appropriate loader to handle this file type.
The IDE shows the following warning:
[ts] Could not find a declaration file for module '@brainhubeu/react-carousel'. '/path_to_project/node_modules/@brainhubeu/react-carousel/lib/react-carousel.js' implicitly has an 'any' type.
This is simple usage by following the instructions on https://brainhubeu.github.io/react-carousel/docs/gettingStarted
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
brainhubeu/react-carousel - Issuehunt
The IDE shows the following warning: [ts] Could not find a declaration file for module '@brainhubeu/react-carousel'. '/path_to_project/node_modules/@brainhubeu/ ...
Read more >@brainhubeu/react-carousel - npm
Carousel component for React. Latest version: 2.0.4, last published: 2 years ago. Start using @brainhubeu/react-carousel in your project by ...
Read more >Could not find a declaration file for module ''react-materialize ...
I had a similar error but for me it was react-router . Solved it by installing types for it. npm install --save @types/react-router....
Read more >【TypeScript】【React】Could not find a ... - Medium
I got the error in all directories of my project. Could not find a declaration file for module 'react'. '/Users/username/projects/project-name/node_modules/ ...
Read more >Error: Could not find a declaration file for module - YouTube
Fix error: Could not find a declaration file for module ... implicitly has an 'any' type.Try npm install library-name if it exists or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve created the types here (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/37617).
Just install
@types/brainhubeu__react-carousel
much thanks @SoaresMG