We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa5cb8 commit 2cb3fa3Copy full SHA for 2cb3fa3
lib/loader.js
@@ -18,13 +18,13 @@ try {
18
const sass = require("node-sass");
19
const sassVersion = require("node-sass/package.json").version;
20
21
- if (/^4[.]/.test(sassVersion)) {
+ if (Number(sassVersion[0]) >= 4) {
22
asyncSassJobQueue = async.queue(sass.render, threadPoolSize - 1);
23
} else {
24
- loadingError = new Error("The installed version of \`node-sass\` is not compatible (expected: 4.x, actual: " + sassVersion + ").");
+ throw new Error("The installed version of \`node-sass\` is not compatible (expected: 4.x, actual: " + sassVersion + ").");
25
}
26
} catch (e) {
27
- // ignored
+ loadingError = e;
28
29
30
/**
0 commit comments