We don't use the product object and controller for simplicity. That's why we have to edit the file <projectPath>\custom-sofa\bower_components\sofa-basket-service\dist\sofa.BasketService.js
Remove lines 100 till 102 (comment them out)
if (product.isOutOfStock()) {
throw new Error('product out of stock');
}
Else you get this error:
TypeError: undefined is not a function
at Object.self.addItem (http://localhost:9000/bower_components/sofa-basket-service/dist/sofa.basketService.js:100:21)
...
We don't use the product object and controller for simplicity. That's why we have to edit the file
<projectPath>\custom-sofa\bower_components\sofa-basket-service\dist\sofa.BasketService.jsRemove lines 100 till 102 (comment them out)
Else you get this error: