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

I get an error during Lesson 7 #1

Open
Cst2989 opened this issue Aug 5, 2016 · 1 comment
Open

I get an error during Lesson 7 #1

Cst2989 opened this issue Aug 5, 2016 · 1 comment

Comments

@Cst2989
Copy link

Cst2989 commented Aug 5, 2016

0.32d8846….hot-update.js:110 Uncaught (in promise) TypeError: Cannot read property 'username' of undefined(…)

As far as I can tell the errors state is empty.

this.props.userSignupRequest(this.state).then(
() => {},
({ data }) => this.setState({errors : data})
);
This function doesn't return anything. I tried to console.log(data) and I get undefined.

Am i doing something wrong?

@Remchi
Copy link
Owner

Remchi commented Aug 5, 2016

That's because axios changed how it handles errors in newer version. To proceed with series make sure that you use axios version 12.0. I'll cover this issue in later episodes.

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

2 participants