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

aframe 1.4.2 error (Math has been renamed to MathUtils) #34

Open
kfarr opened this issue May 21, 2023 · 1 comment
Open

aframe 1.4.2 error (Math has been renamed to MathUtils) #34

kfarr opened this issue May 21, 2023 · 1 comment

Comments

@kfarr
Copy link

kfarr commented May 21, 2023

I get the following error when using this component with aframe 1.4.2 / three 0.147.1

caught (in promise) TypeError: Cannot read properties of undefined (reading 'floorPowerOfTwo')

First occurrence:
https://github.com/mattrei/aframe-mapbox-component/blob/master/index.js#L241

Root cause: Math has been renamed to MathUtils with r113

Suggested solution:
replace THREE.Math with THREE.MathUtils in index.js

@kfarr
Copy link
Author

kfarr commented May 21, 2023

this PR fixes the issue #35

kfarr added a commit to 3DStreet/3dstreet that referenced this issue May 21, 2023
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

1 participant