Giter Site home page Giter Site logo

Comments (11)

michaek avatar michaek commented on May 1, 2024 70

This is a counterintuitive solution, as chokidar does list fsevents in optionalDependencies, and it was installed successfully in my project. Nonetheless, npm i --save-dev fsevents dropped my CPU use from 40% of a core to 0%.

from webpack-dev-middleware.

arobbins avatar arobbins commented on May 1, 2024 1

@michaek Worked for me as-well, thanks.

from webpack-dev-middleware.

index-swf avatar index-swf commented on May 1, 2024 1

I've had the same problem since I updated node, npm rebuild fsevents is also worked. Some packages need to be rebuilt after system upgrade. I wonder if webpack-dev-server should output a warn when it detects that fsevents is unavailable on Mac.
I apologize for my bad English.

from webpack-dev-middleware.

avioli avatar avioli commented on May 1, 2024

Same here, although CPU usage at about 40%, not as high as 100%, but still not < 5%.

"express": "^4.13.3",
"webpack": "^1.12.2",
"webpack-dev-middleware": "^1.2.0",
Mac OS X 10.11.1, 2.5 GHz Intel Core i7, 16 GB 1600 MHz DDR3

webpack.config.js

from webpack-dev-middleware.

avioli avatar avioli commented on May 1, 2024

... It's all because of the webpack watcher.

from webpack-dev-middleware.

eriknyk avatar eriknyk commented on May 1, 2024

same problem, with a similar configuration of @avioli
cpu ~70%
any thoughts?

from webpack-dev-middleware.

mbektimirov avatar mbektimirov commented on May 1, 2024

I have about 100% on my CPU, memory is growing too. I tried to profile it with node-inspector but it was not that easy.

from webpack-dev-middleware.

sokra avatar sokra commented on May 1, 2024

propably the native module for the watcher is not installed, so the watcher switch to polling mode, which is cpu intensive. Try to install the fsevents module for OS X, or increase the polling frequency.

from webpack-dev-middleware.

SpaceK33z avatar SpaceK33z commented on May 1, 2024

Closing this issue because it's not related to this middleware. watchpack is related.

from webpack-dev-middleware.

sekoyo avatar sekoyo commented on May 1, 2024

Thanks @michaek !!! Work proxy was freezing the install of fsevents and I was cancelling it, thinking nothing bad was happening

from webpack-dev-middleware.

nchase avatar nchase commented on May 1, 2024

amazing. thank you, @michaek!

from webpack-dev-middleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.