Remove node-sass dependency
See original GitHub issueI propose we should find another way of handling [css|sass|scss] until node-sass switches from using Gaze as their file watcher.
I love Docker, I love Mac, I love react-scripts, but they don’t work together.
I re-fitted my app to look like “out of the box” create-react-app only to find out that Gaze on node-sass causes my com.docker.hyperkit to burn my CPU at 350%…
node-sass --watch doesn’t work in docker/for-mac without burning the CPU.
For node-sass there has been a PR to switch to chokidar
but I don’t think the maintainers are interested as the PR has been open for a little over 2 years.
Thoughts?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (11 by maintainers)
Top Results From Across the Web
Unable to remove incompatible node-sass #3233 - GitHub
Steps to reproduce: ; Actual result: node-gyp tries to compile modules and fails, node-sass is not removed from package.json/package-lock.json.
Read more >Try reinstalling `node-sass` on node 0.12? - Stack Overflow
If your node version is 4 and you are using gulp-sass, then try npm uninstall --save-dev gulp-sass npm install --save-dev gulp-sass@2.
Read more >Preventing Node-Sass (Or Any Specific Dependency) From ...
Find a way to prevent node-sass from being installed downstream even if referenced by a dependency. · Create a folder named dependency-stub in ......
Read more >Uninstalling packages and dependencies - npm Docs
To remove a package from your node_modules directory, on the command line, use the uninstall command. Include the scope if the package is...
Read more >'node-sass' usage is deprecated and will be removed in a ...
To opt-out of the deprecated behaviour and start using 'sass' uninstall 'node-sass'. sass v5 is not compatible with 4 react n - Your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also this https://github.com/facebookincubator/create-react-app/issues/1939#issuecomment-292774076 the proposed solution should only watch *.scss files to avoid infinite recompiling.
I’m sure the community as a whole would appreciate someone who might write a package which acts as a thin layer on top of
node-sass
. Said package simply useschokidar
for watching and compiling via one-offs withnode-sass
.