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

Facing issue with reducer.js and it is necessary to add webpack as one of the solution suggest to use webpack #67

Open
1410Arpita opened this issue Aug 1, 2023 · 0 comments

Comments

@1410Arpita
Copy link

Failed to compile
./src/reducer.js 10:16
Module parse failed: Unexpected token (10:16)
You may need an appropriate loader to handle this file type.
| // Selector
| export var getBasketTotal = function getBasketTotal(basket) {

return basket?.reduce(function (amount, item) {
| return item.price + amount;
| }, 0);
This error occurred during the build time and cannot be dismissed.

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