We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 (anonymous function) ./components/auth/SignupComponent.js:24 21 | const user = { name, email, password }; 22 | 23 | signup(user).then(data => {
24 | if (data.error) { | ^ 25 | setValues({ ...values, error: data.error, loading: false }); 26 | } else { 27 | setValues({
The text was updated successfully, but these errors were encountered:
I am getting the same error. How did you resolve this?
Sorry, something went wrong.
go to config.js and replace API
export const API = publicRuntimeConfig.PRODUCTION ? publicRuntimeConfig.API_PRODUCTION : 'http://localhost:8000/api';
export const APP_NAME = publicRuntimeConfig.APP_NAME;
export const DOMAIN = publicRuntimeConfig.PRODUCTION ? publicRuntimeConfig.DOMAIN_PRODUCTION : 'http://localhost:8000/';
environment variable doesn't work for some reason so you have to replace the variables with the actual value.
thank you!
No branches or pull requests
×
Unhandled Rejection (TypeError): Cannot read property 'error' of undefined
(anonymous function)
./components/auth/SignupComponent.js:24
21 | const user = { name, email, password };
22 |
23 | signup(user).then(data => {
The text was updated successfully, but these errors were encountered: