Skip to content

useCssVars throw error when instance.subTree is null #7015

@m0ksem

Description

@m0ksem

Vue version

3.2.41

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-4m67zb?file=src/App.vue
SFC

Steps to reproduce

  • Make component to use v-bind in css
  • Pass slot where error throws

What is expected?

Expect only ''Error: a" shown as error

What is actually happening?

Throws "TypeError: can't access property "shapeFlag", vnode is null" in addition to "a"

System Info

No response

Any additional comments?

Should be easy to fix.

const setVars = () => instance.subTree && setVarsOnVNode(instance.subTree, getter(instance.proxy));

Originally come from here: https://github.com/epicmaxco/vuestic-ui/issues/2614

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