Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Cannot read property 'CognitoUserAttribute' of undefined #64

Closed
GuzmanPI opened this issue Apr 8, 2017 · 3 comments
Closed

Cannot read property 'CognitoUserAttribute' of undefined #64

GuzmanPI opened this issue Apr 8, 2017 · 3 comments
Assignees

Comments

@GuzmanPI
Copy link

GuzmanPI commented Apr 8, 2017

Hi guys. This is probably not an issue with this repo, but I wanted to contact you.

I have an Angular CLI app and I'm adding Cognito signup/login based on this project. However, I keep getting this error:

TypeError: Cannot read property 'CognitoUserAttribute' of undefined at UserRegistrationService

I do not know what I'm missing!

I have all the .js in assets/js folder

And I have added al the scripts in the index.

Thanks in advance for the help

@vbudilov vbudilov self-assigned this Apr 8, 2017
@vbudilov
Copy link
Contributor

vbudilov commented Apr 8, 2017

Have you made any modifications to the original code?

@GuzmanPI
Copy link
Author

GuzmanPI commented Apr 8, 2017

I had an Angular CLI app already, and I'm trying to integrate Cognito.

I copied the JS folder into the assets folder, put the scripts in the index.html, and I copied the cognito.service.

I implemented the interface, and call the signup method from my component, but when it gets to de service It gives that error.

I think is something to do with the aws' sdk not being imported or something like that...

Thanks for your time!

@vbudilov
Copy link
Contributor

vbudilov commented Apr 9, 2017

There's a myriad of things that might be wrong, so I'm not sure where to begin. I would suggest you look at UserRegistrationService in an IDE (I suggest IntelliJ) and see what errors it's giving you...easier to debug that way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants