Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

referencing this when it is already the window object in SignUp #119

Open
gerwinbrunner opened this issue Jun 13, 2017 · 1 comment
Open

Comments

@gerwinbrunner
Copy link

gerwinbrunner commented Jun 13, 2017

Hi,

I get the following error

Exception in delivering result of invoking 'createUser': TypeError: _this7.showMessage is not a function
    at http://localhost:3010/packages/std_accounts-ui.js?hash=69063d010a3ed9c833c97bb301c6d32ad0e2425e:2400:20
    at http://localhost:3010/packages/accounts-base.js?hash=00b4c32478a678093a294cc73c7dbd8c59c65d48:324:26

I think this is due to the fact of using the this reference here

I use an extended class MyLoginForm extends LoginForm

@gerwinbrunner
Copy link
Author

gerwinbrunner commented Jun 13, 2017

Changing this line to

    const SignUp = (_options) => {

fixes it for me

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

No branches or pull requests

1 participant