Skip to content

Instantly share code, notes, and snippets.

@ferronrsmith
Created January 30, 2026 20:24
Show Gist options
  • Select an option

  • Save ferronrsmith/b86a45c7a39d77e1bbe6ee3d523b0892 to your computer and use it in GitHub Desktop.

Select an option

Save ferronrsmith/b86a45c7a39d77e1bbe6ee3d523b0892 to your computer and use it in GitHub Desktop.
sass-loader with node-saas > 4.0.0
diff --git a/node_modules/sass-loader/lib/loader.js b/node_modules/sass-loader/lib/loader.js
index d3f30ec..319cd26 100644
--- a/node_modules/sass-loader/lib/loader.js
+++ b/node_modules/sass-loader/lib/loader.js
@@ -104,8 +104,8 @@ function getRenderFuncFromSassImpl(module) {
}
return module.render.bind(module);
} else if (implementation === "node-sass") {
- if (!semver.satisfies(version, "^4.0.0")) {
- throw new Error("Node Sass version " + version + " is incompatible with ^4.0.0.");
+ if (!semver.satisfies(version, "^4.0.0 || > 4.0.0")) {
+ throw new Error("Node Sass version " + version + " is incompatible with ^4.0.0 || > 4.0.0");
}
// There is an issue with node-sass when async custom importers are used
// See https://github.com/sass/node-sass/issues/857#issuecomment-93594360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment