Closed maddybin closed 1 year ago
I have Installed it with npm install glightbox
npm install glightbox
This successfully gets installed. Both package.json & package-lock.json shows the package installed.
package.json
package-lock.json
But when I import it with import GLightbox from 'glightbox'; in my component I get following error message
import GLightbox from 'glightbox';
Could not find a declaration file for module 'glightbox'.
Please help me with what I am missing here.
We should create custom typings for this. As its not bind to typescript directly.
I have Installed it with
npm install glightbox
This successfully gets installed. Both
package.json
&package-lock.json
shows the package installed.But when I import it with
import GLightbox from 'glightbox';
in my component I get following error messageCould not find a declaration file for module 'glightbox'.
Please help me with what I am missing here.