woocommerce/woocommerce-gateway-dummy

Dev Dependencies need updating to build successfully

Closed this issue · 0 comments

rogyw commented

Following steps shown in https://developer.woocommerce.com/2022/07/07/exposing-payment-options-in-the-checkout-block/

Using woocommerce-gateway-dummy v1.0.5 and running npm install results in multiple WARN: deprecated messages and reports 20 known vulnerabilities.

npm audit fix does not resolve all issues.
npm audit fix --force and then npm run build results in an error.

In wp-admin while editing the checkout page the Dummy Gateway is reported as incompatible with block-based checkout

Updating package.json file devDependencies to latest versions as below and then running npm install and npm run build fixes error with two warnings remaining. Dummy Gateway displays as expected in checkout page WooCommerce Checkout block.

"devDependencies": {
		"@woocommerce/dependency-extraction-webpack-plugin": "^2.2.0",
		"@wordpress/scripts": "^26.10.0",
		"cross-env": "7.0.3"
}