Skip to content

typeof statsOptions.colors ... Cannot read property 'colors' of undefined #815

Closed
@uinika

Description

@uinika
  • Operating System:
  • Node Version:
  • NPM Version:
  • webpack Version:
  • webpack-dev-middleware Version:

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! aves@6.3.3 start: node ./config/command/start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the aves@6.3.3 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

// webpack.config.js
// If your code blocks are over 20 lines, please paste a link to a gist
// (https://gist.github.com).
// additional code, HEY YO remove this block if you don't need it

How Do We Reproduce?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions