Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getErrors missing after migration to 2.0.0 #82

Open
mgreer opened this issue May 7, 2018 · 0 comments
Open

getErrors missing after migration to 2.0.0 #82

mgreer opened this issue May 7, 2018 · 0 comments

Comments

@mgreer
Copy link

mgreer commented May 7, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant