Errors with Typescript 4.0

BabylonJS can’t be used with TS 4.0. During compilation several errors like this will appear:

error TS2610: 'isCube' is defined as an accessor in class 'Texture', 
but is overridden here in 'RenderTargetTexture' as an instance property.

Typescript 4.0 introduced a breaking change: Breaking Changes · microsoft/TypeScript Wiki · GitHub

It would be nice if this could be fixed. Currently i have to patch the .d.ts file manually.

TypeScript 4.0 was just released, we are still in the process of supporting it. Update will come very soon :slight_smile:

1 Like

I’ll work on it today

1 Like