1 | initial version |
This error occurs because the ref property is not included in the type definition for ShaderMaterial. When trying to use ref on a ShaderMaterial, Typescript cannot confirm that it is a valid property and throws an error. To resolve this, you can create a custom type definition for your ShaderMaterial that includes the ref property.