We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
using magento 2.4.5 generate the error:
node_modules/@graphcommerce/google-datalayer/mapping/cartToPurchase/cartToPurchase.ts:23:32 - error TS18049: 'address.selected_shipping_method.price_excl_tax' is possibly 'null' or 'undefined'. 23 (sum, address) => sum + (address?.selected_shipping_method?.price_excl_tax.value ?? 0),
price_excl_tax is optional
in the magento-open-source examplet use:
`// @ts-check
/**
module.exports = config ` as graphcommerce.config.js
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
using magento 2.4.5 generate the error:
Expected Behavior
price_excl_tax is optional
To Reproduce
in the magento-open-source examplet use:
`// @ts-check
/**
*/
const config = {
magentoEndpoint: 'https://configurator.reachdigital.dev/graphql',
magentoVersion: 245,
canonicalBaseUrl: 'https://graphcommerce.vercel.app',
storefront: [
{ locale: 'en', magentoStoreCode: 'en_US', defaultLocale: true },
{ locale: 'nl', magentoStoreCode: 'nl_NL' },
],
recentlyViewedProducts: {
enabled: true,
},
}
module.exports = config
`
as graphcommerce.config.js
The text was updated successfully, but these errors were encountered: