AWS Mobile Hub Starter Issue

#1

Hi,

I followed the instructions on the github readme and have imported the app into my AWS Mobile Hub project and downloaded my projects aws-config.js to src/assets. When I attempt to serve the app I get a runtime error:

Runtime Error:
aws_cognito_region is not defined

Stack:
ReferenceError: aws_cognito_region is not defined
    at new Cognito (http://localhost:8100/build/main.js:112:36)
    at _createClass (http://localhost:8100/build/vendor.js:10975:20)
    at _createProviderInstance$1 (http://localhost:8100/build/vendor.js:10949:26)
    at resolveNgModuleDep (http://localhost:8100/build/vendor.js:10934:17)
    at _createClass (http://localhost:8100/build/vendor.js:10977:29)
    at _createProviderInstance$1 (http://localhost:8100/build/vendor.js:10949:26)
    at resolveNgModuleDep (http://localhost:8100/build/vendor.js:10934:17)
    at NgModuleRef_.get (http://localhost:8100/build/vendor.js:12159:16)
    at resolveDep (http://localhost:8100/build/vendor.js:12655:45)
    at createClass (http://localhost:8100/build/vendor.js:12525:32)

Any insight would be greatly appreciated.

#2

I am quoting from Stack Overflow user Juan Rivera on my post over there.

"I fixed this issue by going to the aws-config.js and removing the single quotes on each of the variables defined. So if you have this:

const 'aws_cognito_region' = 'us-east-1';

Change to this:

const aws_cognito_region = 'us-east-1';"