Fails in Angular Production build
See original GitHub issueDo you want to request a feature or report a bug? -BUG
What is the current behavior?
-Production build fails with error:
ERROR in node_modules/aws-amplify-angular/dist/src/components/authenticator/confirm-sign-in-component/confirm-sign-in.factory.d.ts(3,24): error TS2307: Cannot find module 'aws-sdk/clients/route53domains'.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have dependencies other than AWS Amplify.
setup a new angular 6 project. install amplify and aws amplify. Add confirmation (not sure) and build with production flag.
What is the expected behavior? successful build
Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions? “aws-amplify”: “^1.0.8”, “aws-amplify-angular”: “^2.0.0”,
The fix was quite easy i just added the aws-sdk to my project and now it works. But in my opinion it should be listed as your dependencies.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
just reran the install commands. Seems to work now. I think this had to do with me uninstalling the old sdks, because i used these before amplify.
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
*-help
channels or Discussions for those types of questions.