You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
If we select the ProductPrice to display our block in the Storybook, an error is displayed instead:
To reproduce
Steps to reproduce the behavior:
Go to the Storybook. You should see an error displayed instead of the ProductPrice component
Select the Sale and Range variations. You should see the same error displayed
Cannot read properties of undefined (reading 'minorUnit')
TypeError: Cannot read properties of undefined (reading 'minorUnit')
at FormattedMonetaryAmount (https://woocommerce.github.io/woocommerce-blocks/main.513e3732.iframe.bundle.js:1:116428)
at Ch (https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2206074)
at ck (https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2257911)
at bk (https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2245256)
at ak (https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2245187)
at Tj (https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2245056)
at Lj (https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2242081)
at Jg (https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2239461)
at lk (https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2255412)
at https://woocommerce.github.io/woocommerce-blocks/vendors~main.d14fb5db.iframe.bundle.js:10:2256801
Expected behavior
We should see the component instead of an error
Screenshots
Environment
WordPress (please complete the following information):
WordPress version: [e.g. 5.9]
Gutenberg version (if installed): [e.g. 12.0.0]
WooCommerce version: [e.g. 6.1]
WooCommerce Blocks version: [e.g. 7.0.0]
Site language:
Any other plugins installed:
Desktop (please complete the following information):
OS: [e.g. macOS, Windows]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Describe the bug
If we select the
ProductPriceto display our block in the Storybook, an error is displayed instead:To reproduce
Steps to reproduce the behavior:
ProductPricecomponentSaleandRangevariations. You should see the same error displayedExpected behavior
We should see the component instead of an error
Screenshots
Environment
WordPress (please complete the following information):
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
N/A