-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Bundle analyzer Error: listen EADDRINUSE :::8888 #301
Comments
This just means you already have something running on port 8888 (likely the same project, running in another window) :) |
Same problem, nothing is running on port 8888 (analyzer uses this port actually) Also I had deleted example files running node script |
@coryhouse I've specified the different port, error persists |
@Iyel Have you check to confirm that there is not an outstanding process in the background that is hung? Here is a SO that may help. The first command will list all processes that have node in them and if needed the second command will kill them off. I have had to start using this recently after updating my MBP to Sierra |
@Iyel, I checked this as well and even after doing edits and hot reloading kicks in there is no error. The only time this happens is if something is running on the port that it's complaining about like Kyle and Cory mention, e.g. running react-slingshot's |
looks like |
Interesting. I can't seem to reproduce. @cpietsch, can you share the following: |
npm 3.10.8 |
Same issue, I believe the BundleAnalyzerPlugin isn't closing the port. |
OK, so @falconmick and co., the issue is you're running |
@falconmick, @cpietsch, @Iyel , I definitely get the error then, but I wonder if this is a non-issue as you're running |
Another option could be to just run the bundle analyzer when running a different npm script. |
I'd prefer the bundle analyzer run as a separate script and would welcome a pr. |
@coryhouse, I'll get a PR for this-this weekend probably unless there are any OSS peeps that would like to tackle this before then. |
I wasn't running another instance. I would be running npm start -s and as soon as I got an error in my code it would try to rebind the bundle analyser (I did nothing) which then caused it to fail due to port not available
|
same issue @coryhouse @nickytonline npm 3.10.8 changed the port , still issue exists. |
I am wrapping up a project tonight. I should be available after or this weekend to look into this a bit. |
I've removed bundleAnalyzerPlugin for now since it's apparently buggy on some machines. Needs to be implemented as a separate npm script anyway since displaying every time the app opens is overkill. 47f020c |
Cheers Sent from my iPhone
|
@coryhouse Is this something we want to support, if we are able to find a fix for this? |
Yeah, I'm a fan of the feature. But I think a dedicated bundle-analyzer script makes sense. |
I got this to work by modifying the config options passed into the plugin:
This launches the analyzer page against the generated data file rather than the bundle itself, and works well to get past the issue when using hot reloading. Good luck! |
Good stuff @mlwigdahl! Thanks for sharing. I still feel a separate npm script makes sense to avoid always opening a report that is only worth looking at occasionally. Anyone strongly disagree? |
@coryhouse, I'm still on board with a separate script as it really is something you don't need to run all the time. |
Now the bundle analyzer runs its own script. Fixes #301.
good job!! @nickytonline @mlwigdahl |
i'm a soft enigner of chinese, i got the same error when my project run。 tks the answer of this list。 |
well done。 |
I'm going to leave this here for anyone using Vue's modern mode build with webpack's BundleAnalyzerPlugin. Hope it helps someone 🥂 Problem
Solution
Docs for modern mode |
Since I'm also falling into this old issue, I'll also add my word:
So I explicitely uninstalled it npm uninstall webpack-bundle-analyzer And generated a report with vue-cli-service build --report # Or include it as a script in package-json The report should now be generated in |
Node version: v6.5.0
npm version: 3.10.3
Operating system: macos 10.12.1
Command line used: npm start
Steps to reproduce:
1, change some code under src.
2, save
3, Got the errmsg:
The text was updated successfully, but these errors were encountered: