-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Could not find a declaration file for module '@aws-amplify/ui' #2460
Comments
Hey @samuelcastro, how are you including amplify into your project? I would like to reproduce this error and attempt to add type definitions to the amplify ui package. At the moment Amplify UI does not have type definitions defined. It should be fairly easy to add them to provide Typescript support. A workaround would be to add a new declaration as mentioned in the error or set noImplicitAny to false in your tsconfig. |
I solved by adding a
|
Yeah, an easy workaround would be just include it, I just wanted to see if a better solution is being take, like creating a typescript type definition of it. Thanks anyway. |
We have the same problem. package.json:
We import it like so (angular project)
It seems that in index.d.ts there is the following:
Of course its easy enough to get around with adding a file as above... but it would be nice with proper types... |
Just stumbled upon this too. Everything else has a proper type declaration file in |
This should not be marked as a feature request, it completely breaks compiling |
Add |
Any updates on this for Angular 8 support? Still getting this error:
From package.json
IVY is NOT enabled. |
I added |
As the above callouts and merged PRs, this is resolved. Closing this issue |
@sammartinez I still have this issue on the latest version. How do I solve it? |
same problem |
Problem is here also. I'm trying to just use |
I have this problem to with the latest version |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
When trying to build a typescript project I'm getting: Could not find a declaration file for module '@aws-amplify/ui':
To Reproduce
Steps to reproduce the behavior:
./node_modules/.bin/tsc
Expected behavior
Successfully build
The text was updated successfully, but these errors were encountered: