I've been attempting to transfer a 3D model from Blender into a Three.js project, but I keep encountering this error: Uncaught TypeError: Cannot read property 'x' of undefined. The issue seems to be stemming from the following piece of code:
var loader= new THREE.JSONLoader();
loader.load('http://localhost/js/map.json', function(geometry) {
mesh= new THREE.Mesh(geometry);
scene.add(mesh);
});
I have also included a link to the json file of the 3D model provided to me:
Any assistance in identifying what is causing the issue would be greatly appreciated.