Notes: Webpack in WordPress Gutenberg

New Day: Sat Dec 17 2022 21:20:28 GMT-0600 (Central Standard Time)

I am currently having issues where I cannot get webpack to work and I get this error.

Error: Cannot find module '@wordpress/scripts/config/webpack.config'

The only remedy I’ve found is move @wordpress/scripts from devDependencies to dependencies.

Also, move other webpack related things from devDependencies to dependencies and that should clear up the errors.

Why this is? I do not know yet.

Leave a Reply