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 4ed28fd commit 911bf6dCopy full SHA for 911bf6d
packages/react-dev-utils/FlowTypecheckPlugin.js
@@ -184,13 +184,14 @@ FlowTypecheckPlugin.prototype.apply = function(compiler) {
184
flowInitializationPromise = initializeFlow(
185
compiler.options.context, this.flowconfig, this.otherFlowTypedDefs
186
)
187
- .then(() => {
188
- flowInitialized = true;
189
- }, (e) => {
+ .catch(e => {
190
loaderContext.emitWarning(new Error(
191
'Flow project initialization warning:\n' +
192
e.message
193
));
+ })
+ .then(() => {
194
+ flowInitialized = true;
195
});
196
flowActiveOnProject = true;
197
}
0 commit comments