question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove node-sass dependency

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
viankakrisnacommented, Apr 16, 2017

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.

1reaction
Timercommented, Apr 16, 2017

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 uses chokidar for watching and compiling via one-offs with node-sass.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found