-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot import this module in Typescript #205
Comments
Have you tried This works for a .ts file. |
@politician disregard my previous statement, I ran across this in another project and was able to see the problem. I don't know how to resolve it at the moment, but can you try these lines:
And see if you are at least able to use the API? It breaks intellisense, unfortunately, but I have been able to use it without issues at runtme. |
I ended up having this issue but your suggestion above resolved the import error for me without requiring the typescript ignore comment. However, I was met with another issue:
Specifically installing tslib into my project solved that. Not sure why I had to explicitly install it into my own project when the imgur package depended on it. |
I just pushed a new version (2.4.0) of this package that is built using Vite and should no longer present any issues with importing this module in TypeScript. Please let me know if you see any further issues! |
Describe the bug
When I try to import this module in my typescript project, I get the following error:
To Reproduce
Does not work
Works
Environment
The text was updated successfully, but these errors were encountered: