TypeScript: React.ElementType becomes incompatible after importing @react-three/fiber

Author: ayush-FullStack-devCreated Sep 3, 2026Updated Sep 3, 2026

There seems to be a TypeScript type conflict caused by @react-three/fiber.

After installing @react-three/fiber, React.ElementType starts resolving to never in our project. Before installing the package, React.ElementType works normally.

The important part is that the issue disappears as soon as @react-three/fiber is removed. This makes it seem like the problem is coming from the type definitions provided by @react-three/fiber, rather than from our own code or TypeScript configuration.

We noticed this while using React.ElementType in a generic/polymorphic component.

Steps to reproduce

  1. Create a new React + TypeScript project.

  2. Install the required packages:

bash
npm install react react-dom three @react-three/fiber
npm install -D typescript @types/react @types/react-dom @types/three

Source: pmndrs/react-three-fiber