Typescript compiler error for refs with tresjs #301
Labels
bug
Something isn't working
dx
good first issue
Good for newcomers
help wanted
Extra attention is needed
types
Describe the bug
I am using tresjs and would like to reference my newly loaded .glb and a directional light.
I should say, the page actually functions as expected, however the red squiggly line appears in my local VSCode with an error, and so would like to nail it down if possible.
Final note: this typescript compiler error only occurs on my local VSCode system, as can be seen from the StackBlitz link below, it doesn't occur there.
So I'm not sure if this is even a bug, but I'd like to ask for help to remove the red squiggly line from my local system, thanks if possible.
Reproduction
https://stackblitz.com/edit/vitejs-vite-qn7w4v
Steps to reproduce
I've tried changing the type of ref to a few things, eg: <THREE.DirectionalLight>, however nothing seems to remove this error:
(property) ref?: ((Ref<THREE.DirectionalLight> | Readonly<Ref<THREE.DirectionalLight>>) & VNodeRef) | undefined
System Info
Used Package Manager
npm
Code of Conduct
The text was updated successfully, but these errors were encountered: