ive tried updating npm to the latest version , I went to node.js site and used their installer to install latest node.js as well.
I now also tried removing the loading aspect of the code and just tried to create the scene with some simple code :
createScene () {
// Create a basic BJS Scene object
var scene = new BABYLON.Scene(this.babylonEngine);
// Create a FreeCamera, and set its position to {x: 0, y: 5, z: -10}
var camera = new BABYLON.FreeCamera('camera1', new BABYLON.Vector3(0, 5, -10), scene);
// Target the camera to scene origin
camera.setTarget(BABYLON.Vector3.Zero());
// Attach the camera to the canvas
// camera.attachControl(this.glContext.glInstance, false);
// Create a basic light, aiming 0, 1, 0 - meaning, to the sky
var light = new BABYLON.HemisphericLight('light1', new BABYLON.Vector3(0, 1, 0), scene);
// Create a built-in "sphere" shape; its constructor takes 6 params: name, segment, diameter, scene, updatable, sideOrientation
var sphere = BABYLON.Mesh.CreateSphere('sphere1', 16, 2, scene, false, BABYLON.Mesh.FRONTSIDE);
// Move the sphere upward 1/2 of its height
sphere.position.y = 1;
// Create a built-in "ground" shape; its constructor takes 6 params : name, width, height, subdivision, scene, updatable
var ground = BABYLON.Mesh.CreateGround('ground1', 6, 6, 2, scene, false);
// Return the created scene
return scene;
}
im back to the "cannot read property ‘vertexArrayObject’ of undefined error :
Uncaught TypeError: Cannot read property 'vertexArrayObject' of undefined
at new D (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\node_modules\babylonjs\babylon.js:1)
at _.setVerticesData (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\node_modules\babylonjs\babylon.js:1)
at q._applyTo (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\node_modules\babylonjs\babylon.js:1)
at q.applyToMesh (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\node_modules\babylonjs\babylon.js:1)
at Function.x.CreateSphere (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\node_modules\babylonjs\babylon.js:1)
at Function._.CreateSphere (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\node_modules\babylonjs\babylon.js:1)
at BabylonController.createScene (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\js\BabylonController.js:41)
at new BabylonController (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\js\BabylonController.js:19)
at ProjectController.buildProject (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\js\ProjectController.js:123)
at ProjectController.onCloneProject (C:\Users\ian\Documents\GitHub\babylonjs_project_editor\electron_app\js\ProjectController.js:134)
i really trying to help myself here and not being lazy but I obviously need help as nothing i try is working
someone with knowledge of what i need to do to get this working please help