Skip to content
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

TypeError thrown when running in minimal mode #336

Closed
tropicalraisel opened this issue Aug 30, 2021 · 2 comments · Fixed by #338
Closed

TypeError thrown when running in minimal mode #336

tropicalraisel opened this issue Aug 30, 2021 · 2 comments · Fixed by #338

Comments

@tropicalraisel
Copy link
Contributor

tropicalraisel commented Aug 30, 2021

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
  • What operating system are you on? Windows 10
  • What terminal application are you using? Tested on Command Prompt and Powershell
  • What version of webpack-dashboard are you using? ^3.3.5
  • What is the output of running echo $TERM? Nothing
@zicodeng
Copy link

zicodeng commented Sep 3, 2021

I believe this is a duplicate of this issue 🤔

ryan-roemer added a commit that referenced this issue Sep 6, 2021
- Bug: Allow socket message to be null. Fixes #335, fixes #336.
@ryan-roemer
Copy link
Member

Fixed in webpack-dashboard@3.3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants