Cannot read properties of null (reading 'children') #871
Open
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
- I agree to follow this project's Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Assignees
Labels
No labels