TomaszFurca Posted May 29, 2017 Share Posted May 29, 2017 Hi, I want to use Tower of Babel in my project instead bledner exporter, but i can't implment it. File is exported to JS, but after import Mesh i can see this error in console: Uncaught TypeError: Cannot set property 'SCENE' of undefined at defineMaterials (avatar1_animations.js:163) at new character (avatar1_animations.js:1441) at new Characters (characters.ts:15) at e.callback (Simple.ts:30) at e.notifyObservers (babylon.2.5.js:2) at i._checkIsReady (babylon.2.5.js:11) at babylon.2.5.js:11 After read documentation, I include QueuedInterpolation.1.0.min.js file in my project, but sill without success. I am trying with gulp to build JS from TS files, but gulp fail on error: [21:00:27] Tested 31 tests, 30 passes, 1 failures: FAIL events.js:163 throw er; // Unhandled 'error' event ^ Error: Failed 1 expectations at DestroyableTransform.endStream [as _flush] (/home/tomek/Downloads/Extensions-master/QueuedInterpolation/Gulp/node_modules/gulp-expect-file/index.js:90:26) at DestroyableTransform.<anonymous> (/home/tomek/Downloads/Extensions-master/QueuedInterpolation/Gulp/node_modules/gulp-expect-file/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:135:12) at Object.onceWrapper (events.js:293:19) at emitNone (events.js:86:13) at DestroyableTransform.emit (events.js:188:7) at prefinish (/home/tomek/Downloads/Extensions-master/QueuedInterpolation/Gulp/node_modules/gulp-expect-file/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:450:12) at finishMaybe (/home/tomek/Downloads/Extensions-master/QueuedInterpolation/Gulp/node_modules/gulp-expect-file/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:458:7) at afterWrite (/home/tomek/Downloads/Extensions-master/QueuedInterpolation/Gulp/node_modules/gulp-expect-file/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:340:3) at onwrite (/home/tomek/Downloads/Extensions-master/QueuedInterpolation/Gulp/node_modules/gulp-expect-file/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:330:7) at WritableState.onwrite (/home/tomek/Downloads/Extensions-master/QueuedInterpolation/Gulp/node_modules/gulp-expect-file/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:115:5) Before this error i saw a lot of error like this: ../src/queue/PovProcessor.ts(430,38): error TS4070: Parameter 'd' of public static method from exported class has or is using private name 'BABYLON'. ../src/queue/TimelineControl.ts(24,42): error TS4070: Parameter 'scene' of public static method from exported class has or is using private name 'BABYLON'. Thanks for help Tom ----------------- After changes in generate JS file, mesh started work. I must delete line TOWER_OF_BABLE.Preloader.Scene = scene and change function M to _M. But, why file is not generated correctly? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.