Subscribe on changes!

Confusing fatal error on ref of the same name than a prop on component instanciation

avatar
Aug 14th 2023

Vue version

3.3.4

Link to minimal reproduction

https://github.com/vuejs/core/issues/new?assignees=&labels=&projects=&template=bug_report.yml

Steps to reproduce

Create component with a prop of a given name. Create a DOM ref with the same name. Instanciate the component. BAM! Fatal error : Cannot read properties of null (reading 'shapeFlag')

What is expected?

At least a helpful error

What is actually happening?

A very confusing error : Fatal error : Cannot read properties of null (reading 'shapeFlag')

System Info

No response

Any additional comments?

No response