filipecorrea/react-image-hotspots

Could not find a declaration file for module 'react-image-hotspots'

AnderSco01 opened this issue · 2 comments

Hi, I cannot seem to download this package from npm, I just get the following when trying to import it after downloading:


'ImageHotspots' is declared but its value is never read.ts

Could not find a declaration file for module 'react-image-hotspots'. 'C:/Users/scott.anderson/source/repos/Onpoint Site Engineering - Report360 Platform V1.0/report360/node_modules/react-image-hotspots/dist/ImageHotspots.js' implicitly has an 'any' type.

Try npm i --save-dev @type/react-image-hotspots if it exists or add a new declaration (.d.ts) file containing declare module react-image-hotspots';`

I tried the --save-dev install but to no avail, any help would be great, thank you.

You will need to add the following to your .d.ts file (or create one):

declare module 'react-image-hotspots';

For example, if you use create-react-app your definition file will be src/react-app-env.d.ts.

I'm very sorry! This project was a bit abandoned, but I'm planning to update it from now on.

This issue will also be probably fixed by #62.

It would be awesome if you could help me by also contributing to the source code if you can. See you around!