You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting this morning I am getting a TypeError when trying to scaffold a project with @wordpress/scripts. Based on a similar issue on the CreateReactApp (facebook/create-react-app#11930) Project it appears that the mini-css-extract-plugin was updated to version 2.5.0 and based on our package.json dependency it automatically pulls the latest minor version:
Failed to load '/Users/fabiankaegy/Developer/personal/sandpack-block/node_modules/@wordpress/scripts/config/webpack.config.js' config
[webpack-cli] TypeError: MiniCSSExtractPlugin is not a constructor
at Object.<anonymous> (/Users/fabiankaegy/Developer/personal/sandpack-block/node_modules/@wordpress/scripts/config/webpack.config.js:240:3)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at WebpackCLI.tryRequireThenImport (/Users/fabiankaegy/Developer/personal/sandpack-block/node_modules/webpack-cli/lib/webpack-cli.js:244:16)
at loadConfigByPath (/Users/fabiankaegy/Developer/personal/sandpack-block/node_modules/webpack-cli/lib/webpack-cli.js:1710:30)
at /Users/fabiankaegy/Developer/personal/sandpack-block/node_modules/webpack-cli/lib/webpack-cli.js:1765:11
Step-by-step reproduction instructions
Create a new project and install @wordpress/scripts
add start: wp-scripts start to the package.jsonscripts section
run npm start
See the issue happen
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
Description
Starting this morning I am getting a
TypeError
when trying to scaffold a project with@wordpress/scripts
. Based on a similar issue on the CreateReactApp (facebook/create-react-app#11930) Project it appears that themini-css-extract-plugin
was updated to version2.5.0
and based on ourpackage.json
dependency it automatically pulls the latest minor version:gutenberg/packages/scripts/package.json
Line 72 in bccf726
This is the full error I am getting:
Step-by-step reproduction instructions
@wordpress/scripts
start: wp-scripts start
to thepackage.json
scripts
sectionnpm start
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: