Subsequent variable declarations must have the same type. Variable ‘VRFrameData’ must be of type ‘{ new (): VRFrameData; prototype: VRFrameData; }’, but here has type ‘any’
Please let me know how to fix this .
Thank you
Subsequent variable declarations must have the same type. Variable ‘VRFrameData’ must be of type ‘{ new (): VRFrameData; prototype: VRFrameData; }’, but here has type ‘any’
Please let me know how to fix this .
Thank you
i’ll check that. Shouldn’t happen.
I see that you are using the babylonjs
package, are there any other packages that you are using along this one?
YES ,it my conflict with Typescript package
Typescript.dom.d.ts
Babylon.module.d.ts
Typescript.dom.d.ts having some code refrecne.so how i will alias that
what version of typescript are you using? what types are you adding?
could you try with 4.5.4 which is the current one we use ?
After Renaming Babylon.module.d.ts file variable working fine .but worry about after change variable name in .ts file should it effect any other pleace.
Old Variable name:declare var VRFrameData: any;
New Variable name:declare var VRFrameData_baby: any;
After make this change compile successfully
Hello @Kiran_Rohit just checking in, do you still have an issue?
Still experiencing this issue. Is there any other solution than upgrading typescript version?
Is there an issue with upgrading typescript?
Babylon’s typings are generated using typescript 4.7.X, but I assume an earlier version should still work. just not a version that has the dom.lib.ts typings incorrect.