Melancholix Posted August 16, 2016 Share Posted August 16, 2016 Hi everyone, I'm new to node and babylon, but I've spent hours googling and can't find an explanation for my problem, so I decided to post here. I am working on a game using node and babylon, and written in TypeScript using atom. The game has a server and client. When using the BABYLON.Vector3 class in my server file no errors show in atom, however once i start the server with the command 'node server' it throws an error saying: 'BABYLON is not defined'. I have tried doing 'npm install babylonjs' however the error still remains. Is it not possible to use BABYLON.Vector3 in my server? Everything works fine on the client. I have attached the error. 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.