Runtime error when executing ionic-starter-aws


#1

Hey there! I created an Ionic app based on the ionic-starter-aws template (named aws). When runing the app with ionic serve I got the following error after I logged in with username / password:

Runtime Error
this.isAuthenticated is not a function
Stack:
TypeError: this.isAuthenticated is not a function
    at Object.onSuccess (http://localhost:8100/build/main.js:171:26)
    at e.value (http://localhost:8100/assets/amazon-cognito-identity.min.js:17:19389)
    at http://localhost:8100/assets/amazon-cognito-identity.min.js:17:18878
    at constructor.<anonymous> (http://localhost:8100/assets/amazon-cognito-identity.min.js:17:18333)
    at constructor.<anonymous> (http://localhost:8100/assets/aws-cognito-sdk.min.js:21:15952)
    at constructor.callListeners (http://localhost:8100/assets/aws-cognito-sdk.min.js:21:24558)
    at constructor.emit (http://localhost:8100/assets/aws-cognito-sdk.min.js:21:24267)
    at constructor.emitEvent (http://localhost:8100/assets/aws-cognito-sdk.min.js:21:18671)
    at constructor.a (http://localhost:8100/assets/aws-cognito-sdk.min.js:21:14521)
    at d.runTo (http://localhost:8100/assets/aws-cognito-sdk.min.js:22:12444)

When I refresh the page, the login is successful.

The same happend, when I ceate a new Task inside the app.

Runtime Error
this.refreshTasks is not a function
Stack:
TypeError: this.refreshTasks is not a function
    at constructor.<anonymous> (http://localhost:8100/build/main.js:754:26)
    at constructor.<anonymous> (http://localhost:8100/assets/aws-sdk.min.js:38:3807)
    at constructor.callListeners (http://localhost:8100/assets/aws-sdk.min.js:38:19482)
    at constructor.emit (http://localhost:8100/assets/aws-sdk.min.js:38:19191)
    at constructor.emitEvent (http://localhost:8100/assets/aws-sdk.min.js:38:6527)
    at constructor.e (http://localhost:8100/assets/aws-sdk.min.js:38:2292)
    at a.runTo (http://localhost:8100/assets/aws-sdk.min.js:39:26375)
    at http://localhost:8100/assets/aws-sdk.min.js:39:26582
    at constructor.<anonymous> (http://localhost:8100/assets/aws-sdk.min.js:38:2502)
    at constructor.<anonymous> (http://localhost:8100/assets/aws-sdk.min.js:38:6582)

Refresh, and the task is created…

I cannot sort this out:-( Can anybody help?

My environment:
Ionic Framework: 3.5.0
Ionic App Scripts: 2.0.0
Angular Core: 4.1.3
Angular Compiler CLI: 4.1.3
Node: 7.7.4
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Thanks in advance!


#2

There are issues about that on the Github repo. One of them: https://github.com/ionic-team/ionic2-starter-aws/issues/20

Also you can use ionic info on the command line to get a good overview of the environment.


#3

Thanks a lot! I did not see the issues…