Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build Wordpress 6.5.2 and Woocommerce 8.8.2 #35

Closed
arijit-sezzle opened this issue Apr 23, 2024 · 4 comments · Fixed by #41
Closed

Unable to build Wordpress 6.5.2 and Woocommerce 8.8.2 #35

arijit-sezzle opened this issue Apr 23, 2024 · 4 comments · Fixed by #41

Comments

@arijit-sezzle
Copy link

I get this error when I do wp-scripts build

[webpack-cli] Failed to load '/Applications/MAMP/htdocs/wordpress/wp-content/plugins/woocommerce-gateway-dummy/webpack.config.js' config
[webpack-cli] Error: Cannot find module '../assets/packages'

Any idea how to fix this?

@chang-ryan
Copy link

seeing this too

@arijit-sezzle
Copy link
Author

arijit-sezzle commented Apr 23, 2024

It's actually coming from the @woocommerce/dependency-extraction-webpack-plugin. And the reason is that 2.4.0(^2.2.0 goes to 2.4.0) of @woocommerce/dependency-extraction-webpack-plugin does not contain assets/packages folder and it is required inside the src/index.js of @woocommerce/dependency-extraction-webpack-plugin. Just using 2.2.0 works.

^version “Compatible with version”, will update you to all future minor/patch versions, without incrementing the major version. ^2.2.0 will use releases from 2.2.0 to <3.0.0. And the latest version is 2.4.0.

@chang-ryan
Copy link

ah yes, updating to 3.0.0 also works

@jimjasson
Copy link
Contributor

Thank you all for reporting this!

We have opened a PR with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants