-
Am trying to add helper for the spotLight but its throwing back this error!
const Lights = ()=>{
const light = useRef()
useHelper(light, SpotLightHelper, 'cyan')
return(
<group>
<ambientLight />
<spotLight ref={light} position={[50, 40, 40]} castShadow/>
</group>
)
} I couldn't figure it our from the Drei documentation, any suggestions ? |
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
Mar 30, 2021
Replies: 1 comment 4 replies
-
its probably your build system. im seeing this error with vite all the time now. the helper works otherwise: https://codesandbox.io/s/v6-adaptive-regression-gf5dn?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
malmualla
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
its probably your build system. im seeing this error with vite all the time now. the helper works otherwise: https://codesandbox.io/s/v6-adaptive-regression-gf5dn?file=/src/App.js