discoverthreejs-site icon indicating copy to clipboard operation
discoverthreejs-site copied to clipboard

BoxGeometry instead of BoxBufferGeometry

Open pereaf13 opened this issue 2 years ago • 1 comments

Hello! I am following and trying to reproduce the code in https://discoverthreejs.com/book/first-steps/first-scene/

And I was getting this error:

Uncaught SyntaxError: The requested module './vendor/three/build/three.module.js' does not provide an export named 'BoxBufferGeometry' (at main.js:3:3)

After some research I realized instead of BoxBufferGeometry it needs to be BoxGeometry.

So maybe you want to fix it in the book.

pereaf13 avatar Jan 10 '24 04:01 pereaf13

+1 for this. This happend also when using npm

The solution is to import BoxGeometry

nayakayp avatar May 16 '24 06:05 nayakayp