You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`
import {TransformControls} from "@react-three/drei";
import { TransformControls as TransformControlsImpl, OrbitControls as OrbitControlsImpl } from 'three-stdlib'
`
Please be sure to enclose the TransformControls within {} or this will not work. Not sure why Typescript does not throw an error if you try to import directly from drei, but it doesnt.
I'm seeing that TransformControls is not able to be refererrenced :
Error is 'TransformControls' refers to a value, but is being used as a type
https://codesandbox.io/s/crazy-faraday-dekluz?file=/src/App.tsx
three
version: 0.143.0@react-three/fiber
version: 8.6.0.@react-three/drei
version: 9.25.2Problem description:
Am unable to compile with these errors in VSCode
Relevant code:
Please see attached CSB
https://codesandbox.io/s/crazy-faraday-dekluz?file=/src/App.tsx
Suggested solution:
I've tried every option I can find on how to modify the import statement, change the types etc. Nothing appears to work for me.
The text was updated successfully, but these errors were encountered: