3d model doesn't load

Hi all,

I am trying to load .obj file. I dont have any errors in the browser but the object is not loaded but I get warnings as ‘THREE.OBJLoader: Unexpected line: “”’.

This is how I load the model

const loader = new OBJLoader()
loader.load('/assets/r2-d2.obj', function(obj) {

const animate = () => {
   renderer.render(scene, camera)


as the assets folder is on the same level as my file

Please ensure with the network tab of your browser’s dev console whether your OBJ file is correctly loaded or not. Check for no 404 error and also inspect the response for valid OBJ content.