When changing the light type from directional to ambient, sometimes the following error raised, we better safely set the properties of light:
Uncaught TypeError: Cannot set properties of undefined (setting 'bias')
The responsible module: \src\components\light.js