on ‎2023 Feb 07 12:55 PM
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?
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.