question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails in Angular Production build

See original GitHub issue

Do 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”,

2018-09-04 15_53_07-package json - visual studio code

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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
henrysachscommented, Sep 5, 2018

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.

0reactions
github-actions[bot]commented, Jun 13, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular build for production fails - Stack Overflow
When I try to build for production my angular application with the following command ng build --prod --build-optimizer I get the following ...
Read more >
Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >
Angular 9 Production Build Fails during Optimization Phase ...
A new Angular 9 app fails during a production build (ng build --prod). The application compiles with ng build and ng serve.
Read more >
Read your production Angular Errors like a pro - Medium
Read your production Angular Errors like a pro · The error tells us that there is an attempt to access the property 'value'...
Read more >
Angular CLI ng build fails - Visual Studio Feedback
I have been trying to get a dotnet core 2.0, Angular CLI 1.5.0 & Angular 5.0.0 ... followed by an npm task with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found