Hi , I am new to Babylon.js . I am following this tutorial.Link. I am stuck at the point where we build our project. I also install typescript. using cmd: npm install -g typescript.
Currently getting this error:
Assets/[Babylon]/Template/Typings/babylon.d.ts(45128,32): error TS2304: Cannot find name ‘XMLHttpRequestBodyInit’.
Assets/[Babylon]/Template/Typings/babylon.d.ts(92243,13): error TS2403: Subsequent variable declarations must have the same type. Variable ‘VRFrameData’ must be of type ‘{ new (): VRFrameData; prototype: VRFrameData; }’, but here has type ‘any’.
Assets/[Babylon]/Template/Typings/babylon.manager.d.ts(1305,11): error TS2300: Duplicate identifier ‘TouchJoystickHandler’.
Assets/Content/Browser/InputController.ts(1737,19): error TS2300: Duplicate identifier ‘TouchJoystickHandler’.
Assets/Content/Loader/AssetPreloader.ts(29,99): error TS2339: Property ‘RegisterImportMeshes’ does not exist on type ‘typeof SceneManager’.
Assets/Content/Loader/AssetPreloader.ts(42,103): error TS2339: Property ‘RegisterAssetContainer’ does not exist on type ‘typeof SceneManager’.
node_modules/@types/node/index.d.ts(179,11): error TS2300: Duplicate identifier ‘IteratorResult’.
node_modules/typescript/lib/lib.es2015.iterable.d.ts(41,6): error TS2300: Duplicate identifier ‘IteratorResult’.
Sure, Meanwhile I shall try to find more options for this error. Let me know if we have any series of tutorials for Babylon scripting in unity as well. Thanks
Hi! Was Your Problem solved?
I tried through MackeyK24’s solution.
The following error:
Assets/[Babylon]/Template/Typings/babylon.manager.d.ts(1305,11): error TS2300: Duplicate identifier ‘TouchJoystickHandler’.
Assets/Content/Browser/InputController.ts(1737,19): error TS2300: Duplicate identifier ‘TouchJoystickHandler’.
Assets/Content/Loader/AssetPreloader.ts(29,99): error TS2339: Property ‘RegisterImportMeshes’ does not exist on type ‘typeof SceneManager’.
Assets/Content/Loader/AssetPreloader.ts(42,103): error TS2339: Property ‘RegisterAssetContainer’ does not exist on type ‘typeof SceneManager’.
still exist!
Yes now you are one step closer. Try to comment the code where it shows the error.
Try to comment ‘TouchJoystickHandler’ code in InputContoller.ts
And comment error code in AssetPreloder.ts .
Hopefully it will resolve the issue.
I applied these settings and my project was running fine.