Closed ryota-mitarai closed 3 years ago
fixed in https://github.com/ryota-mitarai/aframe-websurfaces/commit/823a26c5b96ae89418a494ccd1d10b593d843ed3 (release v1.2.0)
I guess it was something to do with the three dependency
In A-Frame 1.3.0 this error happens again. Any fix?
When you download and locally import the built package (for example,
import 'websurface.umd.js'
), everything works correctly.However, if you import the package from npm, using
import 'aframe-websurfaces'
, it doesn't work and gives an error:I think it gives the error on line 23 in DOMElement.js:
super(geometry, material);
and it sounds like it's something to do with transpiling down into ES5, but I'm not sure why it only happens when the files are downloaded from npm.