I was following a tutorial video( https://www.babylontoolkit.com/videos/GettingStarted.mp4 ).
At 17:00, I can’t do anything further because “failed to build” error occurs when I checked “Build Typescript Files” and pressed the play button.
Unity console says “babylon.d.ts(4447,18): error TS2567: Enum declarations can only merge with namespace or…”
While watching this video,
I typed npm install -g typescript@3.3
and npm install -g babylonjs@preview
referring to TypeScript compile fails with Typescript 3.1 · Issue #5277 · BabylonJS/Babylon.js · GitHub
But nothing worked…
I guess it should be about versioning problem because I never wrote any ts files to build the scene just like the video.
Also, my unity version is 2018.3.5f1 and OS is windows 10, 1809 build.
I hope to get any help… please
Hello and welcome
please let me ping the Unity toolkit exporter author: @MackeyK24
ping the toolkit? Sorry I don’t understand fully… I am a newbie who just started today. The exporter download url is the latest one. Do you mean running a webserver with the exported html? Thank you for your reply.
Sorry I missed a word (Author)
I pinged the exporter author for you
There seems to be an issue with the latest Babylon.d.ts and the typescript version.
I will try upadting toolkit to latest typescript compilers… I will l get back to you
Yo @Deltakosh … What TypeScript Version should the 4.0.0 rc0 be built with…
I am using 3.4.5 and getting this error with babylon.d.ts file from the latest nightly builds:
src/babylon.d.ts(4447,18): error TS2567: Enum declarations can only merge with namespace or other enum declarations.
UPDATE:
Nevermind @Deltakosh … I found it… Those folks keep putting breaking changes into typescript
1 Like
I know! That drives me nuts!!