Replies: 2 comments 1 reply
-
I get similar const ref = useRef<DirectionalLight>(null!);
useHelper(ref, DirectionalLightHelper, 1, 0xff0000); |
Beta Was this translation helpful? Give feedback.
1 reply
-
try using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
im facing this TYPE error:
"@react-three/drei": "^9.57.0",
"@react-three/fiber": "^8.11.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"three": "^0.150.1"
Problem description:
how to use useHelper with DirectionalLight in typescript.

I get similar type error when using TransformControls as well.
Relevant code:
Suggested solution:
can you share any typescript examples ?
issue with TransformControls as well
Beta Was this translation helpful? Give feedback.
All reactions