cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue with import in Composable Storefront

1,140

We are trying to use the OrderConfirmationTotalsComponent and have added it as an import to our typescript class. According to the documentation for version 5, this component was moved to the order library, see the documentation: https://help.sap.com/docs/SAP_COMMERCE_COMPOSABLE_STOREFRONT/10a8bc7f635b4e3db6f6bb7880e58a7d/1807e2...

So we are trying to import the component from this library: import {OrderConfirmationTotalsComponent} from '@spartacus/order/components/order-confirmation/order-confirmation-totals/order-confirmation-totals.component';

But even though the class exists in the library we are receiving the following error in the console: ./src/app/spartacus/features/cms-components/order-confirmation/order-confirmation-header/ssab-order-confirmation-header.component.ts:3:0-160 - Error: Module not found: Error: Package path ./components/order-confirmation/order-confirmation-totals/order-confirmation-totals.component is not exported from package C:\SSAB\Commerce\js-storefront\ssabstorefront\node_modules\@spartacus\order (see exports field in C:\SSAB\Commerce\js-storefront\ssabstorefront\node_modules\@spartacus\order\package.json)

How can we import the OrderConfirmationTotalsComponent and fix the error?

Accepted Solutions (0)

Answers (0)