[three]: @webgpu/types conflicts with lib.dom.d.ts of Typescript 6 #74856
Unanswered
wlinna
asked this question in
Issues with a @types package
Replies: 2 comments
-
|
Thanks for the discussion about "three", some useful links for everyone: Pinging the DT module owners: @joshuaellis, @Methuselah96. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is resolved by three-types/three-ts-types#2100 which will be released with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TypeScript 6 includes at least some WebGPU types. Thus including
@webgpu/typesin dependencies causes multiple conflicts.Unfortunately, since the file
types/three/src/renderers/webgpu/WebGPUBackend.d.tshas this line.. I can't just remove
@webgpu/typesfrom dependencies, because that will cause this errorI don't know if there's a better way, but removing the aforementioned line from the typings fixes the compilation error, so maybe that's what should be done. I don't know if there's a way to maintaing compatibility with older versions of TypeScript.
Beta Was this translation helpful? Give feedback.
All reactions