diff --git a/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/block.json b/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/block.json
index 4fd84e1420e..8ddaae21761 100644
--- a/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/block.json
+++ b/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/block.json
@@ -13,5 +13,6 @@
},
"parent": [ "woocommerce/cart-items-block" ],
"textdomain": "woo-gutenberg-products-block",
+ "$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2
}
diff --git a/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/index.tsx b/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/index.tsx
index 60630fb161a..8551d3d897b 100644
--- a/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/index.tsx
+++ b/assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/index.tsx
@@ -8,9 +8,8 @@ import { registerBlockType } from '@wordpress/blocks';
* Internal dependencies
*/
import { Edit, Save } from './edit';
-import metadata from './block.json';
-registerBlockType( metadata, {
+registerBlockType( 'woocommerce/cart-cross-sells-block', {
icon: {
src: (
-
+ Argument of type '{ icon: { src: JSX.Element; }; edit: () => JSX.Element; save: () => JSX.Element; }' is not assignable to parameter of type 'BlockConfiguration<{}>'.
+ Type '{ icon: { src: Element; }; edit: () => Element; save: () => Element; }' is missing the following properties from type 'Pick<Block<{}>, "title" | "category" | "attributes">': title, category, attributes" source="TS2769" />
-
+ Argument of type '{ icon: { src: JSX.Element; }; edit: ({ attributes, setAttributes }: Props) => JSX.Element; save: () => JSX.Element; }' is not assignable to parameter of type 'BlockConfiguration<{ className?: string; columns: number; }>'.
+ Type '{ icon: { src: Element; }; edit: ({ attributes, setAttributes }: Props) => Element; save: () => Element; }' is missing the following properties from type 'Pick<Block<{ className?: string; columns: number; }>, "title" | "category" | "attributes">': title, category, attributes" source="TS2769" />