getErrors missing after migration to 2.0.0
mgreer opened this issue · comments
Migrating from previous release to 2.0.0 and webpack 4, I suddenly get this error:
Uncaught (in promise) TypeError: (0 , n.getError) is not a function
Curious, since the AsyncComponent class should be setting this method, and class seems to have shouldRehydrate.
Error is here:
// browser
if (env === 'browser') {
var _state$asyncComponent = state.asyncComponents,
shouldRehydrate = _state$asyncComponent.shouldRehydrate,
getError = _state$asyncComponent.getError; // <== error is here
var error = getError(state.id);
if (error) {
state.error = error;
return false;
}
return shouldRehydrate(state.id) ? doResolve() : false;
}
Previous release worked in webpack 4.