Skip to content

@vue/compat: Cannot read property 'shapeFlag' of null #3936

@jaulz

Description

@jaulz

Version

3.1.1

Reproduction link

Sorry, I tried my best but it seems to be a strange case where I cannot create a reproduction for.

Steps to reproduce

It seems to be related to "v-if".

What is expected?

Renderer should not trigger a dump.

What is actually happening?

The application dumps:

vendor.js:41509 Uncaught (in promise) TypeError: Cannot read property 'shapeFlag' of null
    at getNextHostNode (vendor.js:41509)
    at getNextHostNode (vendor.js:41510)
    at patch (vendor.js:40362)
    at patchBlockChildren (vendor.js:40688)
    at processFragment (vendor.js:40749)
    at patch (vendor.js:40387)
    at patchKeyedChildren (vendor.js:41141)
    at patchChildren (vendor.js:41084)
    at patchElement (vendor.js:40656)
    at processElement (vendor.js:40474)

Afterwards when I try to reverse the if condition this error is triggered:

vendor.js:41453 Uncaught (in promise) TypeError: Cannot read property 'type' of null
    at unmountComponent (vendor.js:41453)
    at unmount (vendor.js:41371)
    at unmountChildren (vendor.js:41505)
    at unmount (vendor.js:41389)
    at unmountChildren (vendor.js:41505)
    at unmount (vendor.js:41395)
    at unmountComponent (vendor.js:41473)
    at unmount (vendor.js:41371)
    at patchKeyedChildren (vendor.js:41255)
    at patchChildren (vendor.js:41084)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions