react-storefront-starter-app
react-storefront-starter-app copied to clipboard
Update Cart Is Not Working From The Cart Page
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:
- Start the application
npm start - Load the application in the URL:
http://localhost:3000/ - Add a product to the cart
- Visit the cart page
- Try to increment or decrement the quantity
- 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
A pull request is created for this: #78