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

Unhandled Rejection (TypeError): Cannot read property 'error' of undefined #1

Open
mbozdemir opened this issue May 4, 2019 · 0 comments

Comments

@mbozdemir
Copy link

Hi, terminal is error;
Compiled with warnings.

./src/post/NewPost.js
Line 118: 'photo' is assigned a value but never used no-unused-vars

./src/auth/PrivateRoute.js
Line 1: 'Component' is defined but never used no-unused-vars

./src/user/EditProfile.js
Line 60: Unnecessary escape character: . no-useless-escape
Line 60: Unnecessary escape character: . no-useless-escape

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

React starting error;
Unhandled Rejection (TypeError): Cannot read property 'error' of undefined
eval
src/post/Posts.js:30:30
27 | }
28 |
29 | loadMore = number => {

30 | this.setState({ page: this.state.page + number });
| ^ 31 | this.loadPosts(this.state.page + number);
32 | };
33 |
View compiled
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.

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