Offset is outside the bounds of the DataView appears in threejs

such as the title:
No matter how you do it, you will report this mistake. Do you want to cry? has anyone encountered the latest version of three.js v0.96

?

this.stlLoader.load (". / a.stlpercent, function (geometry) {

)
var mat = new THREE.MeshLambertMaterial({color: 0x00ffff});
var mesh = new THREE.Mesh( geometry, mat );
mesh.rotation.x = -0.5 * Math.PI; //
mesh.scale.set(0.1, 0.1, 0.1); //
geometry.center();
this.scene.add( mesh );

});

clipboard.png

Dec.09,2021

should be a loader problem
you can try replacing loader according to this example .

Menu