Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue - Uncaught RangeError: Offset is outside the bounds of the DataView #8

Open
cheriejw opened this issue Apr 30, 2018 · 5 comments
Open

Comments

@cheriejw
Copy link

Using this package with Vue.js

Error in Inspector

I have run THREE alone successfully, just added this portion to the script and there was no visual change from everything that was loading fine, the error message in inspector is above:

    var loader = new STLLoader();
    loader.load('../test-assets/lowerBody.stl', function (geometry) {
      var material = new THREE.MeshNormalMaterial();
      this.mesh = new THREE.Mesh(geometry, material);
      this.scene.add(mesh);
    })
@Tu-Szu-Chi
Copy link

I have same issue too. (In React project v.16.4.0)

@araker
Copy link

araker commented Jul 9, 2018

I encoutered this error on node.js, in my case the cause was how the stl was loaded. I was using fs.readFileSync, which reuses the buffer to read in the file (see nodejs/node#11132). Using fs.readFile fixed the issue for me.

@mengyliu
Copy link

Same issue here with Reach v.16.7.0

@jhimy-michel
Copy link

Any update about this issue?

@damienallen
Copy link

I ran into this issue with electron due to overzealous middleware and lacking warnings in both this and the electron-compile library. See my response here for some debugging tips:

#10 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants