amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 302 forks source link

Remove the config file for building the app dynamically; resolve ngFactory build issues #101

Closed jsheld closed 7 years ago

jsheld commented 7 years ago

To circumvent ng build --prod issues, the following packages were added: npm i enhanced-resolve@3.3.0

This explicitly fixes the error: "Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory'"

Once that package was installed, you can now successfully build the project locally using ng build --prod

Tested by running createResources.sh script and selected the option to deploy Cognito to Beanstalk. Test environment verified: http://cognito.eq6pt8jvgk.us-east-2.elasticbeanstalk.com/home