ThreeJS + Vite + TypeScript WebGL conflict

Hello,

When i installed threeJS + vite into my typescript project, I started getting conflicts, and adding skiplibcheck causes more issues. Anyone else have this issue? It seems threejs comes with a WebGL which is conflicting with one that comes with typescript itself.

Build:Definitions of the following identifiers conflict with those in another file: GPUBufferDynamicOffset, GPUColor, GPUFlagsConstant, GPUIndex32, GPUIntegerCoordinate, GPUIntegerCoordinateOut, GPUMapModeFlags, GPUSignedOffset32, GPUSize32, GPUSize32Out, GPUSize64, GPUSize64Out, GPUStencilValue, GPUTextureUsageFlags, GPUBufferMapState, GPUCompilationMessageType, GPUDeviceLostReason, GPUIndexFormat, GPUPipelineErrorReason, GPUQueryType, GPUTextureAspect, GPUTextureDimension, GPUTextureFormat, GPUTextureViewDimension, GPURenderBundleDescriptor, GPUSupportedFeatures, WGSLLanguageFeatures

1 Like

Sorry I don’t have an answer to this. But (and I may be wrong) threejs itself doesn’t ship with types.