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

BoxGeometry instead of BoxBufferGeometry #101

Open
pereaf13 opened this issue Jan 10, 2024 · 1 comment
Open

BoxGeometry instead of BoxBufferGeometry #101

pereaf13 opened this issue Jan 10, 2024 · 1 comment

Comments

@pereaf13
Copy link

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.

@nayakayp
Copy link

+1 for this.
This happend also when using npm

The solution is to import BoxGeometry

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

2 participants