5.0.0-rc.6 not building due to typescript errors in Engine

Trying to upgrade my project to use 5.0.0-rc.6 from 5.0.0-beta.9, and getting tons of errors like this:

node_modules/@babylonjs/core/Engines/engine.d.ts(1031,1): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
node_modules/@babylonjs/core/Engines/engine.d.ts(1274,1): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
node_modules/@babylonjs/core/Engines/engine.d.ts(1281,1): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
node_modules/@babylonjs/core/Engines/engine.d.ts(1288,1): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
node_modules/@babylonjs/core/Engines/engine.d.ts(1295,1): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
node_modules/@babylonjs/core/Engines/engine.d.ts(1302,1): error TS1038: A 'declare' modifier cannot be used in an already ambient context.

I am on typescript 4.5.5. Any ideas if I might be missing something or what the fix would be?

cc @RaananW , we will provide a fix ASAP :slight_smile:

1 Like

Being published as we speak. Won’t take long, rc.7 is coming up :slight_smile:

1 Like

rc.7 was just published and should include a fix

1 Like

Thanks for the quick fix!

1 Like