FormidableLabs / webpack-dashboard

A CLI dashboard for webpack dev server
MIT License
13.87k stars 363 forks source link

TypeError thrown when running in minimal mode #336

Closed tropicalraisel closed 3 years ago

tropicalraisel commented 3 years ago

Please provide a description of the bug / issue, and provide the details below:

When running this command: webpack-dashboard -m -- encore dev-server, this error gets generated after a successful build:

TypeError: Cannot read property 'type' of null
    at Socket.<anonymous> (C:\...\node_modules\webpack-dashboard\bin\webpack-dashboard.js:79:21)
    at Socket.emit (node:events:394:28)
    at Socket.emitUntyped (C:\...\node_modules\socket.io\dist\typed-events.js:69:22)
    at C:\...\node_modules\socket.io\dist\socket.js:428:39
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
error Command failed with exit code 1.

If the issue is visual, please provide screenshots here

Steps to reproduce the problem
  1. Clone my repo: https://github.com/TropicalRaisel/django-encore-webapp
  2. Go into the package.json and change the first script to the command shown in the description above.
  3. yarn serve

Please provide a gist of relevant files
  1. package.json (specifically the script you are using to start the dashboard)
  2. webpack.config.js

More Details
zicodeng commented 3 years ago

I believe this is a duplicate of this issue 🤔

ryan-roemer commented 3 years ago

Fixed in webpack-dashboard@3.3.6