pmndrs / drei

🥉 useful helpers for react-three-fiber
https://drei.pmnd.rs/
MIT License
7.83k stars 642 forks source link

Type error in declaration files #2013

Open Methuselah96 opened 2 days ago

Methuselah96 commented 2 days ago

Problem description:

Running type-checking with skipLibCheck set to false reports the following error:

Error: ./node_modules/@react-three/drei/core/Bvh.d.ts(1,22): error TS6053: File './node_modules/@react-three/custom.d.ts' not found.

The problem can be seen by inspecting Bvh.d.ts, which has a reference to custom.d.ts which is not within the published package:

image

This is likely introduced in https://github.com/pmndrs/drei/pull/1999, with the TypeScript version upgrade.

Relevant code:

N/A

Suggested solution:

Remove custom.d.ts: https://github.com/pmndrs/drei/pull/2014