HoloLite Posted February 21, 2018 Share Posted February 21, 2018 Just synced to alpha9 but getting build errors right away. Looks like there is syntax error in .d.ts for the gui package. I am using angular/webpack with ng cmd. Same project built fine previously. Here are the build errors: C:\dev\projects\webapps>ng build --prod Date: 2018-02-21T12:51:23.168Z Hash: e03edb425620f4fe17e0 Time: 6027ms chunk {0} styles.9c0ad738f18adc3d19ed.bundle.css (styles) 79 bytes [initial] [rendered] chunk {1} polyfills.7635b39e999c8cd2e748.bundle.js (polyfills) 86 bytes [initial] [rendered] chunk {2} main.9444a37124a94844ea40.bundle.js (main) 84 bytes [initial] [rendered] chunk {3} inline.dff7020f031ec8a8dd21.bundle.js (inline) 1.45 kB [entry] [rendered] ERROR in node_modules/babylonjs-gui/babylon.gui.module.d.ts(5,22): error TS1003: Identifier expected. node_modules/babylonjs-gui/babylon.gui.module.d.ts(5,30): error TS1005: ']' expected. node_modules/babylonjs-gui/babylon.gui.module.d.ts(5,36): error TS1005: ';' expected. Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 21, 2018 Share Posted February 21, 2018 Hi, thanks, I will look into it right now. Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 21, 2018 Share Posted February 21, 2018 Fix is on its way. Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 21, 2018 Share Posted February 21, 2018 3.2.0-alpha10 was just published with a fix Quote Link to comment Share on other sites More sharing options...
HoloLite Posted February 21, 2018 Author Share Posted February 21, 2018 @RaananW it's now building in alpha10 but I still need to do the workaround of adding babylonjs-serializers so that the loaders won't cause build break. I thought this was fixed in alpha9 ? Not a big deal, but just want to call it out in case you consider this is still an issue, albeit a minor one. Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 21, 2018 Share Posted February 21, 2018 alpha 10 loaders and serializers both include the babylonjs-gltf2interface package, which includes the typescript definition that is needed for the compilation. Please make sure you load alpha10 (and not ^3.2.0-alpha10), and let me know if it works correctly. Quote Link to comment Share on other sites More sharing options...
HoloLite Posted February 21, 2018 Author Share Posted February 21, 2018 I removed the caret signs in the front and .... yes it worked now! ^^ All is good! thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.