The following code builds in 5.8.0 and 5.10.0, but not 5.11.0:
if (isDevelopmentMode) {
void import("@babylonjs/core/Debug/debugLayer");
void import("@babylonjs/inspector");
}
The error reported is:
[tsl] ERROR in <file>
TS7016: Could not find a declaration file for module '@babylonjs/inspector'. '<path>\node_modules\@babylonjs\inspector\dist\babylon.inspector.bundle.max.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/babylonjs__inspector` if it exists or add a new declaration (.d.ts) file containing `declare module '@babylonjs/inspector';`
The contents of the \node_modules@babylonjs\inspector\dist directories of the different versions are: