Arte Posted September 18, 2017 Share Posted September 18, 2017 Hi everyone, I'm trying run require('babylonjs') on server-side, but getting following error: DebugLayer.InspectorURL = window.location.href.split('/')[0] + '//preview.babylonjs.com/inspector/babylon.inspector.bundle.js'; TypeError: Cannot read property 'href' of undefined Any suggestions are welcome Quote Link to comment Share on other sites More sharing options...
Hersir Posted September 18, 2017 Share Posted September 18, 2017 Hi I thinks its because you need headless version to run it on server. There is ticket for that. On server window and window.location are not set, so it breaks. Quote Link to comment Share on other sites More sharing options...
Arte Posted September 18, 2017 Author Share Posted September 18, 2017 3 minutes ago, Hersir said: Hi I thinks its because you need headless version to run it on server. There is ticket for that. On server window and window.location are not set, so it breaks. @Hersir paldies brālim from Lithuania Quote Link to comment Share on other sites More sharing options...
Hersir Posted September 19, 2017 Share Posted September 19, 2017 @ArteYou are Welcome 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.