-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
typeof statsOptions.colors ... Cannot read property 'colors' of undefined #815
Comments
same here, when using |
Somebody can create example? |
@AviVahl I have added tests for webpack@4, but all fine 😕 |
Debugged to see what's happening during compilation. |
Now take code from readme and save as
|
Yep, already found bug, WIP on this, anyway thanks for reproducible test repo, patch/release will be in near future |
Please try https://github.com/webpack/webpack-dev-middleware/releases/tag/v4.0.4, I added all cases for |
Works on my end. Thanks! 👍 |
Expected Behavior
webpack built 4333dbf8aa8a0bbf4aab in 13716ms
C:\Workspace\gd-diy-apply\node_modules\webpack-dev-middleware\dist\utils\setupHooks.js:68
} else if (typeof statsOptions.colors === 'undefined' || typeof statsOptions === 'string') {
^
TypeError: Cannot read property 'colors' of undefined
at C:\Workspace\gd-diy-apply\node_modules\webpack-dev-middleware\dist\utils\setupHooks.js:68:38
at processTicksAndRejections (internal/process/task_queues.js:75:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:
node ./config/command/start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\zhenghang\AppData\Roaming\npm-cache_logs\2021-01-13T06_27_35_802Z-debug.log
Actual Behavior
Code
// additional code, HEY YO remove this block if you don't need it
How Do We Reproduce?
The text was updated successfully, but these errors were encountered: