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 3521eb7 commit 1ede6a8Copy full SHA for 1ede6a8
packages/react-dev-utils/formatWebpackMessages.js
@@ -177,6 +177,11 @@ function formatWebpackMessages(json) {
177
// preceding a much more useful Babel syntax error.
178
result.errors = result.errors.filter(isLikelyASyntaxError);
179
}
180
+ // Only keep the first error. Others are often indicative
181
+ // of the same problem, but confuse the reader with noise.
182
+ if (result.errors.length > 1) {
183
+ result.errors.length = 1;
184
+ }
185
return result;
186
187
0 commit comments