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: Cannot read property 'type' of null #335

Closed
zicodeng opened this issue Aug 26, 2021 · 6 comments · Fixed by #338
Closed

TypeError: Cannot read property 'type' of null #335

zicodeng opened this issue Aug 26, 2021 · 6 comments · Fixed by #338

Comments

@zicodeng
Copy link

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

Not sure if this is related to this plugin or not, but after upgrading webpack-dev-server to the latest version (4.0.0), this error started showing up. However, webpack-dev-server runs fine without this plugin 🤔

TypeError: Cannot read property 'type' of null
    at Socket.<anonymous> (/Users/zicodeng/code/wenwentips/client/node_modules/webpack-dashboard/bin/webpack-dashboard.js:79:21)
    at Socket.emit (events.js:315:20)
    at Socket.emitUntyped (/Users/zicodeng/code/wenwentips/client/node_modules/socket.io/dist/typed-events.js:69:22)
    at /Users/zicodeng/code/wenwentips/client/node_modules/socket.io/dist/socket.js:428:39
    at processTicksAndRejections (internal/process/task_queues.js:75:11)
error Command failed with exit code 1.

====================================================================

If the issue is visual, please provide screenshots here

====================================================================

Steps to reproduce the problem

====================================================================

Please provide a gist of relevant files
  1. package.json (specifically the script you are using to start the dashboard)
"webpack-cli": "^4.8.0",
"webpack-dashboard": "^3.3.3",
"webpack-dev-server": "^4.0.0",
  1. webpack.config.js
  2. index.js (Your express based dev server, if applicable)

====================================================================

More Details
  • What operating system are you on? MacOS
  • What terminal application are you using? iTerm2
  • What version of webpack-dashboard are you using? 3.3.3
  • What is the output of running echo $TERM? xterm-256color
@ryan-roemer
Copy link
Member

Hi @zicodeng -- can you open up a minimal repository with install + error reproduction steps? That would greatly accelerate our ability to dig in and figure out what's up. Thanks!

@zicodeng
Copy link
Author

@ryan-roemer Thanks for your response! I have created a repo for reproduction. Let me know if you have any questions. Thanks for looking into this :)

@zicodeng
Copy link
Author

zicodeng commented Sep 3, 2021

@ryan-roemer Any update?

@ryan-roemer
Copy link
Member

Hi! Thanks for the repo. I’m on leave until next Tuesday, so I’ll likely turn to this next week. Thanks!

@ryan-roemer
Copy link
Member

Confirmed. Working on a fix!

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. Thanks for repo @zicodeng !

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

Successfully merging a pull request may close this issue.

2 participants