Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 tasks done
lp6331619 opened this issue Nov 13, 2024 · 0 comments
Open
5 tasks done

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

lp6331619 opened this issue Nov 13, 2024 · 0 comments

Comments

@lp6331619
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant