aframe-mapbox-component icon indicating copy to clipboard operation
aframe-mapbox-component copied to clipboard

aframe 1.4.2 error (Math has been renamed to MathUtils)

Open kfarr opened this issue 2 years ago • 1 comments

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 avatar May 21 '23 16:05 kfarr

this PR fixes the issue https://github.com/mattrei/aframe-mapbox-component/pull/35

kfarr avatar May 21 '23 17:05 kfarr