[Feedback]Application doesn't work for Angular production builds
See original GitHub issuePage: /start/q/integration/angular
Feedback:
When I follow these instructions the application will run with ng build. However, when running ng build --prod the resulting distribution will not run either locally or with the amplify console. The browser inevitably throws the error ERROR TypeError: Cannot read property ‘aws_appsync_region’ of null (on chrome) or ERROR TypeError: “r is null” (on firefox)
I’ve tried this mostly with Angular 10.1.1. I also tried downgrading to angular 9 with the same result.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Angular 4 app won't work when built for production
I have reinstalled Angular CLI and created a new app, I copied the old code (the index.html and app files) into the new...
Read more >Deployment - Angular
When you are ready to deploy your Angular application to a remote server, ... The command builds your application and uploads the production...
Read more >How to Optimize your Angular App - Glovory Tech
If you are using angular-cli make sure you specify the “build-optimizer” flag for your production build. This will disable the vendor chunk and...
Read more >Speed Up Your Angular App - 14 Angular Optimization Tips
Here, we'll give 14 tips on how to make your Angular app smaller, faster, and more responsive.
Read more >How to bundle an Angular app for production? - GeeksforGeeks
The ng build command generates output files just once and doesn't serve them. Steps Before following the steps to deploy the application, make ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @BenjaminNielsen, thanks for reporting the issue! I was able to reproduce it so I’ll have this issue transferred to our js repo.
I can confirm prod build are now working for me. Thanks so much!