ryota-mitarai / aframe-websurfaces

📦 An aframe component for adding interactable webpages to your scene.
https://www.npmjs.com/package/aframe-websurfaces
MIT License
16 stars 10 forks source link

npm package not working #1

Closed ryota-mitarai closed 3 years ago

ryota-mitarai commented 3 years ago

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:

image

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.

ryota-mitarai commented 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

carlosveny commented 2 years ago

In A-Frame 1.3.0 this error happens again. Any fix?