Skip to content

Cannot read properties of null (reading 'children') #871

Open
@lp6331619

Description

Describe the bug

<script> const options = [ { label: '平行光', value: 'TresDirectionalLight', }, { label: '点光源', value: 'TresPointLight', }, { label: '聚光灯', value: 'TresSpotLight', }, { label: '半球光', value: 'TresHemisphereLight', }] const lightSetting = ref([{ type: 'TresDirectionalLight', config: { position: [5, 5, 5], targets: [0, 0, 0], color: '#ffffff', intensity: 1, castShadow: false } } ]) </script> 当我改变 type 值的时候就报错 Cannot read properties of null (reading 'children'),不加 v-light-helper的时候正常不会报错。

Reproduction

还未上线

Steps to reproduce

<script> const options = [ { label: '平行光', value: 'TresDirectionalLight', }, { label: '点光源', value: 'TresPointLight', }, { label: '聚光灯', value: 'TresSpotLight', }, { label: '半球光', value: 'TresHemisphereLight', }] const lightSetting = ref([{ type: 'TresDirectionalLight', config: { position: [5, 5, 5], targets: [0, 0, 0], color: '#ffffff', intensity: 1, castShadow: false } } ]) </script> 当我改变 type 值的时候就报错 Cannot read properties of null (reading 'children'),不加 v-light-helper的时候正常不会报错。

System Info

Cannot read properties of null (reading 'children')

Used Package Manager

npm

Code of Conduct

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