BabylonJS / BabylonToolkit

Home of the community maintained Unity & Unreal exporters for Babylon.js
173 stars 46 forks source link

UniversalCameraSystem #42

Closed hquu closed 2 years ago

hquu commented 2 years ago

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'UniversalCameraSystem') at Function.n.InstantiateClass (babylon.manager.js:5) at babylon.manager.js:7 at Array.forEach () at Function.n.DoProcessPendingScripts (babylon.manager.js:7) at n.postProcessSceneComponents (babylon.manager.js:7) at Function.n.PostParseSceneComponents (babylon.manager.js:5) at e.startParsing (babylon.manager.js:7) at e.onComplete (babylon.manager.js:7) at r.callback (babylon.manager.js:7) at e.notifyObservers (babylon.min.js:16)

MackeyK24 commented 2 years ago

Do you have typescript installed and the script compiler options enabled on the Toolkit Panel ?

npm install -g typescript

hquu commented 2 years ago

thanks!I have selected the Script compilation- Project Script bundle, I should select ES5, ES6... esntxt

hquu commented 2 years ago

Win32Exception: ApplicationName='C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\bin\tsc', CommandLine='"C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\bin\tsc" -p tsconfig.json', CurrentDirectory='F:/unityprojecttemp/Babylon/New Unity Project', Native error= %1 Not a valid Win32 application.

MackeyK24 commented 2 years ago

for Windows... it should end with tsc.exe

MackeyK24 commented 2 years ago

So command line should read like C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\bin\tsc.exe -p tsconfig.json

MackeyK24 commented 2 years ago

So double check the full path to type script compiler: C:\Users\Administrator\AppData\Roaming\npm\node_modules\typescript\bin\tsc.exe