-
Hi, I'm trying to use this library with a typescript project, and including it in the package.json like so:
But the line below is throwing an error "Error:(17, 18) TS2304: Cannot find name 'tempusDominus'." :
This is happening despite me importing the module explicitely in the file via
If anyone has any pointers for how I can resolve this issue, it would be much appreaciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Here's how to use it in typescript |
Beta Was this translation helpful? Give feedback.
-
Thanks. For some reason though, I am still getting a "Cannot find module" error for the import statement, which is not the case with other libraries included in the project. Also, is it possible to use the library without the new declaration, i.e. by including only the types via package.json but including the js directly in the html? |
Beta Was this translation helpful? Give feedback.
I change the export in v6.0.0 that broke the TS imports. sigh. I'll try to fix this asap