question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find a declaration file for module '@brainhubeu/react-carousel'

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jackall3ncommented, Aug 21, 2019

I’ve created the types here (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/37617).

Just install @types/brainhubeu__react-carousel

0reactions
piotr-s-brainhubcommented, Apr 3, 2020

much thanks @SoaresMG

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found