Skip to content

Commit 8116e18

Browse files
committed
Fixing postcss error: newer versions seem to have a "Syntax Error: name
1 parent dccaf13 commit 8116e18

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/friendly-errors/transformers/missing-postcss-config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
const TYPE = 'missing-postcss-config';
1313

1414
function isMissingConfigError(e) {
15-
if (e.name !== 'ModuleBuildError') {
16-
return false;
17-
}
18-
19-
if (!e.message.includes('No PostCSS Config found')) {
15+
if (!e.message || !e.message.includes('No PostCSS Config found')) {
2016
return false;
2117
}
2218

0 commit comments

Comments
 (0)