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

Update Cart Is Not Working From The Cart Page #136

Closed
rajeev-k-tomy opened this issue Sep 22, 2020 · 1 comment
Closed

Update Cart Is Not Working From The Cart Page #136

rajeev-k-tomy opened this issue Sep 22, 2020 · 1 comment

Comments

@rajeev-k-tomy
Copy link

Bug report

When we try to update any of the cart items from the cart page, it prevents me to do so and throws an error

Describe the bug

The error is obviously happens when the SessionProvider tries to send a POST request to the nextjs API api/cart/update. This request failes with 500 error.

I can also see below error in the console

TypeError: resolver is not a function
    at apiResolver (/Users/rajeevktomy/Desktop/projects/javascript/rsf-db/node_modules/next/dist/next-server/server/api-utils.js:8:7)
    at DevServer.handleApiRequest (/Users/rajeevktomy/Desktop/projects/javascript/rsf-db/node_modules/next/dist/next-server/server/next-server.js:48:427)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Start the application npm start
  2. Load the application in the URL: http://localhost:3000/
  3. Add a product to the cart
  4. Visit the cart page
  5. Try to increment or decrement the quantity
  6. It ends up with an error popup

Expected behavior

It should increment or decrement the quantity of the quote item.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: macOS Catalina 10.15.4
  • Browser: chrome, safari
  • Version of React Storefront: 8.15.1
@rajeev-k-tomy
Copy link
Author

I created another issue in the react storefront starter app. The issue seems with app and it has nothing to do with this repository.

You can find the issue link here.

Excuse for my mistake and i am closing this thread.

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