SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
740 stars 386 forks source link

Can't go to checkout without User Features installed #12252

Open e2yerik opened 3 years ago

e2yerik commented 3 years ago

When creating a new project without any User Feature, causes an error in the browser console and user can't go to checkout. Cart page is still accessible.

ERROR TypeError: Cannot read property 'details' of undefined
    at ɵ1$k (vendor.js:134421)
    at vendor.js:118984
    at memoized (vendor.js:118899)
    at defaultStateFn (vendor.js:118939)
    at vendor.js:118993
    at memoized (vendor.js:118899)
    at MapSubscriber.project (vendor.js:118778)
    at MapSubscriber._next (vendor.js:120212)
    at MapSubscriber.next (vendor.js:60748)
    at FilterSubscriber._next (vendor.js:163984)
defaultErrorLogger @ core.js:4442

Tell us the version of Spartacus

To Reproduce Steps to reproduce the behavior:

  1. Create new angular project ng new spartacus-error --style=scss
  2. Add Spartacus through schematics ng add @spartacus/schematics --baseUrl https://Spartacus-training.eastus.cloudapp.azure.com:8443 --baseSite electronics-spa
  3. Select b2c (did not test b2b)
  4. Inverse selection on the User Features
  5. Build application yarn && yarn run start
  6. Open the browser and see error in console

Expected behavior You should be able to go to checkout without the User Features enabled.

Desktop (please complete the following information):

giancorderoortiz commented 3 years ago

I think the behaviour you describe is per design. @dunqan, @hackergil please confirm.