-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
- Fix issue #11930 where mini css extract plugin was updated to new version facebook/create-react-app#11932
- Breaking change with import via CommonJS in
2.5.0
webpack-contrib/mini-css-extract-plugin#896
KKT:BUILD:ERROR: TypeError: MiniCssExtractPlugin is not a constructor
at createWebpackConfig (/home/runner/work/react-code-preview/react-code-preview/node_modules/react-scripts/config/webpack.config.js:664:9)
at _callee$ (/home/runner/work/react-code-preview/react-code-preview/node_modules/kkt/src/scripts/build.ts:31:29)
at tryCatch (/home/runner/work/react-code-preview/react-code-preview/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/home/runner/work/react-code-preview/react-code-preview/node_modules/regenerator-runtime/runtime.js:294:22)
at Generator.next (/home/runner/work/react-code-preview/react-code-preview/node_modules/regenerator-runtime/runtime.js:119:21)
at asyncGeneratorStep (/home/runner/work/react-code-preview/react-code-preview/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/home/runner/work/react-code-preview/react-code-preview/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
Upgrade kkt@7.0.4
.
Solution 1
npm i mini-css-extract-plugin@2.4.7 -D
Solution 2
For anyone else running into this with an app created via kkt
, add this to your package.json and then run yarn install
again.
"resolutions": {
"mini-css-extract-plugin": "~2.4.7
}
Originally posted by @jaywcjlove in #198 (comment)
Metadata
Metadata
Assignees
Labels
No labels