WooCommerce Block Checkout
-
Hey,
So I am following the tutorial from WooCommerce: https://developer.woocommerce.com/2023/08/07/extending-the-woocommerce-checkout-block-to-add-custom-shipping-options/.
Now I want to simply add a block into my checkout, which if a WooCommerce Subscription Product is purchased, it also asks for a few extra information fields, such as prefered language, and other fields.
When I followed the tutorial (Got the newest NPM version installed, got a local hosted WordPress Website setup). Now when I run their first command to install the template plugin:npx @wordpress/create-block -t wceu23-shipping-workshop shipping-workshop
. It starts downloading the template, installing packages etc all fine. (If I install block without using the-t wceu23-shipping-workshop
it works fine). I get an error on the end when it compiles the block: https://pastebin.com/C0e3J7QA.Anyone that can help solving this issue? Since its failing on building the template :3 If there is another way todo it or a tutorial to be followed or documentation for it. All is welcome!
- You must be logged in to reply to this topic.