eightshift-frontend-libs icon indicating copy to clipboard operation
eightshift-frontend-libs copied to clipboard

[FEATURE] - React in frontend components

Open marijang opened this issue 1 year ago • 1 comments

I m learning how to use woocommerce blocks and how to extend their functionalities.

I see that they using react for frontent with this

https://github.com/WordPress/gutenberg/blob/trunk/packages/dependency-extraction-webpack-plugin/README.md#options https://www.npmjs.com/package/@wordpress/dependency-extraction-webpack-plugin https://www.npmjs.com/package/@woocommerce/dependency-extraction-webpack-plugin

Trying to adopt Block class to use with this.

marijang avatar Dec 20 '23 16:12 marijang

I installed : https://www.npmjs.com/package/@woocommerce/dependency-extraction-webpack-plugin?activeTab=readme

I put into webpack config into plugins new WooCommerceDependencyExtractionWebpackPlugin()

but still when npm start i get error:Module not found: Error: Can't resolve '@woocommerce/base-context'

marijang avatar Dec 20 '23 20:12 marijang