Could not find a declaration file for module 'reactstrap' - reactjs

I'm lost, i tried to run my older react project, but now reactstrap and react-animation-components are not working.
Could not find a declaration file for module 'react-animation-components'. 'c:/Users/user/zreact/node_modules/react-animation-components/lib/react-animation-components.js' implicitly has an 'any' type.
Try npm i --save-dev #types/react-animation-components if it exists or add a new declaration (.d.ts) file containing declare module 'react-animation-components';ts(7016)
The same goes with react-animation.I tried npm i --save-dev #types/react-animation-components but that changes nothing.

Related

Could not find a declaration file for module 'react-digital-clock'. 'd:/React Project/firstapp/node_modules/react-digital-clock/lib/index

when i try to use npm packages , after install it shows on dependency
but at the moment i import in my react project it gives me ab error
--> Could not find a declaration file for module 'react-digital-clock'. 'd:/React Project/firstapp/node_modules/react-digital-clock/lib/index.js' implicitly has an 'any' type.
I encountered errors of this type only in typescript. It means that you need to install types for this library.
npm install --save-dev #types/react-digital-clock
UPD 1.0: I checked the library on TS - it doesn't have a types declaration module. So you can mix your application with .jsx files.
You should create a new file: DigitalClock.jsx and set up your digital clock there. Here is an example (everything works): https://codesandbox.io/s/practical-ramanujan-m12n0b?file=/src/App.js
UPD 2.0: You can search types for any library here

Could not find a declaration file for module 'hclust'

I npm installed this module and it is showing in the dependencies of my package.json. When I import { clusterData } from 'hclust', VS code tells me Could not find a declaration file for module 'hclust'. '/Users/danielsteman/Desktop/dev/spotify_cluster_analysis/webapp/reactTensor/node_modules/hclust/index.js' implicitly has an 'any' type. Try npm i --save-dev #types/hclust if it exists or add a new declaration (.d.ts) file containing declare module 'hclust';ts(7016). I also tried to run npm i --save-dev #types/hclust but I'm getting a 404 not found error. I'm not sure how to solve this issue.
As #types/hclust doesn't exist, you'll need to create your own .d.ts declaration file for the hclust module.
When you do so, you may also choose to submit it to DefinitelyTyped so that others may benefit from it.

Not Found #types/react-bootstrap-table2-editor

I am using react-bootstrap-table2, but i can't install for react-bootstrap-table2-editor typescript
Could not find a declaration file for module 'react-bootstrap-table2-editor'. 'node_modules/react-bootstrap-table2-editor/lib/index.js' implicitly has an 'any' type.
Try `npm install #types/react-bootstrap-table2-editor` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-bootstrap-table2-editor';`ts(7016)
Can you give me some advice?
Run npm install #types/react-bootstrap-table-next
These aren't official types so they might not work that well.
Another option is to add // #ts-ignore above your import. This will mean no typescript support for that package but no error either

Cannot use recordRTC in react project

I cannot import RecordRTC from 'recordrtc'
I have installed the node module, but when I try to import it, i receive the following error:
Could not find a declaration file for module 'recordrtc'. '/Users/jnelson/Documents/GitHub/VidApp/node_modules/recordrtc/RecordRTC.js' implicitly has an 'any' type.
Try `npm install #types/recordrtc` if it exists or add a new declaration (.d.ts) file containing `declare module 'recordrtc';` TS7016
I've tried simply declaring record rtc as an any type in a .d.ts file but that did not seem to help. I feel like this should be a common issue and either a simple solution or someone has made a .d.ts file for this?
I created the app with react-ionic. The error message above is from a local web browser from my desktop
Try npm install #types/recordrtc --save
The above error occurred because you are using TypeScript with your React application.

getting error : Could not find a declaration file for module 'react-bootstrap-modal'. in react js

I am new here in reactjs, I have installed npm install react-bootstrap-modal
When i used it with var Modal = require('react-bootstrap-modal') , it gives me error below, can anyone please help me what i need to do in that ?
Could not find a declaration file for module 'react-bootstrap-modal'. 'd:/wamp64/www/my-app/node_modules/react-bootstrap-modal/lib/Modal.js' implicitly has an 'any' type.Try `npm install #types/react-bootstrap-modal` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-bootstrap-modal';` [7016]
Try `npm install #types/react-bootstrap-modal` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-bootstrap-modal';` [7016]
The scoped type definition is not installed for react-bootstrap-modal
Try installing them:
npm install --save-dev #types/node
npm install --save #types/react-bootstrap
Typed version of packages are maintained by DefinitelyTyped, an
open source community. (For Typescript 2.0+)
https://github.com/DefinitelyTyped/DefinitelyTyped

Resources