Closed Shreerang closed 5 years ago
Can't reproduce, and I'm on a machine with less than power yours.
Can you be more specific?
This is as specific as I can get.
Possible related: https://github.com/webpack/webpack-dev-server/issues/172
I have tried that!
rm -rf node_modules
)npm install
npm install fsevents
(I think, this made it worse 😢Not a 100% sure)I have created a screen recording to show the issue, so that it give clarity to what am seeing. Here is the dropbox URL - https://www.dropbox.com/s/4g23dgzoxejef1p/Vue_Issue.mov?dl=0
Is websocket from sockjs.js causing the issue? 😕 Am still struggling to figure out the root cause!
Unfortunately, I can't reproduce any of the things you seem to experience with a freshly created project or any existing project I have. Local reloads are instant, other tabs perform fine, CPU load is minimal.
Can you think of something that might be causing this issue then? I have been trying different things to resolve this for the last 2 days and nothing seems to work 😢
Also try deactivating all browser extensions
This is super annoying! 😠 I did nothing and everything just works as good as before!!!!
Well, on the bright side you're fine again.
I'll close this as you seem to have been the only one experiencing it
@Shreerang Could you try it in an incognito window
? This is likely caused by some extensions (which I have experienced before).
Sometimes MacOS does strange things with background processes that eats up all the resources of the computer. Disabling things like Calendar sync can help.
This issue is
Please open an issue with a real project repository that we can reproduce this with.
@jkzing I had tried that, but does not help!
@Akryum I tried that as well. Made sure nothing was running except my terminal and Chrome. But still happens.
@LinusBorg - I have a few more observations about the issue. This slowness does not happen at my work place or when I am on my office network via VPN. The issue is reproducible when I am on my home network, friend's home network (both Xfinity), Starbucks Google network, T-Mobile hotspot from my phone or basically ay other network that I could connect too.
Would this give any insights into why this could happen? Btw, I still see the slowness again 😞
I'm having the same issue. App runs slower progressively. Speeds on initial reload and slows down progressively.
@Shreerang I had the same problem and fixed it by changing a configuration file vue.config.js So, I've just changed the configurations of devServer to this:
devServer: {
host: 'localhost',
port: '3000'
}
And everything works as expected. I'm not sure that this is a problem exactly with MacOs, but I've checked the Node Versions and plugins of vue-cli in different combinations and the result is the same... Also, I checked the NodeJS processes list, memory and CPU usage...
This is as specific as I can get.
- Scaffold a new Vue app from CLI or use an existing scaffolded app.
- do npm run serve
- Go to chrome open up localhost:8080
- Do Cmd+Shift+R to refresh the page. You will notice that the page takes more time to reload than a local site should take. You can see the lag.
- If you have other tabs in the browser, switching to those will also be sloooowww.
- Now kill the execution in the terminal with Cmd+C
- Get back to the browser, and everything is as fast as it should be or previously was!
Version
3.2.1
Reproduction link
https://github.com/Shreerang/Vue-Nuggets
Environment info
Steps to reproduce
Scaffold a new app using Vue CLI with any combination and do
npm serve
. Open localhost:8080 in Chrome. Open another tab or go to other existing tabs in the browser. You will notice slowness!This same issue is reproducible on previously scaffolded apps too! :(
What is expected?
The Browser should not slow down!
What is actually happening?
The Browser is slowing down! If you kill the execution in terminal, the browser is back to original state!