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

fix(runtime-core): always set invalid vnode type #820

Merged
merged 1 commit into from
Mar 11, 2020

Commits on Mar 11, 2020

  1. fix(runtime-core): always set invalid vnode type

    Currently, when a component used is not properly registered, we have a warning and the vnode type is set to a Comment type in DEV mode. But in prod mode, we have no default value, making such an application broken and throw a strange error (`can not read _isSuspense of undefined`).
    
    This commit avoids such an error in prod mode (as it is currently the case in Vue 2.x).
    cexbrayat committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    3ef84ce View commit details
    Browse the repository at this point in the history