-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
property does not exist on JSX.IntrinsicElements - ts(2339) #3385
Comments
+1 got this too. |
I just started using react-three-fiber yesterday and thought I was losing my mind, glad I'm not the only one having this issue. Here's what worked for me. You'll need to put this in a file somewhere (e.g. a import { ThreeElements } from '@react-three/fiber'
declare global {
namespace React {
namespace JSX {
interface IntrinsicElements extends ThreeElements {
}
}
}
} This fixed it for me. FWIW I'm using this library with preact with preact/compat and preact-reconciler |
Hmm is it possible that you're using React 19? I just launched a
|
Hey all 👋
recently update to next 15/react 19 and since then I'm getting these errors for basic threejs elements like
ambientLight
,spotLight
and geometriesProperty 'ambientLight' does not exist on type 'JSX.IntrinsicElements'.ts(2339)
Anyone's got a fix or workaround for this?
The text was updated successfully, but these errors were encountered: