-
Notifications
You must be signed in to change notification settings - Fork 305
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
When adding product to cart I get: Cannot read property 'message' of undefined #51
Comments
I cannot replicate the issue, I deployed and tested here and it works fine. Can you console.log( error ) and see what you are getting? |
when i console.log(error) I get console.log( error ) I should have also mentioned that when I clicked add to cart this mutation error came up. and when I go to http://localhost:8000/__graphQL it all works. It is when I click on add to cart that this happens in console:
|
I am also experiencing this issue. I have a hunch it's relating to a persisting CORS policy issue. Has there been any movement on this? I haven't been able to come to a resolution. @imranhsayed @catboxer |
I was also experiencing this issue. I resolved the error by changing the GATSBY_WORDPRESS_URL env variable to my WordPress backend url |
That worked for me. Thanks |
onError
src/components/cart/add-to-cart-button/index.js:63.
Installed latest plugins. Any suggestions on what might be the issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: