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

Compatibility with Aframe 1.3.0 #4

Open calvincs opened 2 years ago

calvincs commented 2 years ago

When using AFrame 1.3.0, the following error occurs:


aframe-websurfaces.umd.js:1 Uncaught TypeError: Class constructor Mesh cannot be invoked without 'new'
    at new n (aframe-websurfaces.umd.js:1:4354)
    at HTMLElement.<anonymous> (aframe-websurfaces.umd.js:1:7158)
    at HTMLElement.<anonymous> (aframe-v1.3.0.min.js:45177:2943)
    at i.tick (aframe-websurfaces.umd.js:1:7873)
    at HTMLElement.value (aframe-v1.3.0.min.js:45187:12868)
    at HTMLElement.value (aframe-v1.3.0.min.js:45187:13402)
    at aframe-v1.3.0.min.js:45324:132
    at onAnimationFrame (aframe-v1.3.0.min.js:20088:34)
    at onAnimationFrame (aframe-v1.3.0.min.js:9547:4)
carlosveny commented 2 years ago

I'm also having this issue. Any fix?

calvincs commented 2 years ago

I reverted to aframe 1.2.0 This was my only way of resolving this issue. I plan on looking to patch a fork of this lib in the future for aframe 1.3.0. The underlying threejs is many versions behind for this project and needs to be patched to be compatible with the same threejs version aframe 1.3.0 is using.

carlosveny commented 2 years ago

Okay thanks for your reply!

dannypbroadbent commented 2 years ago

Getting the same issue for v1.3 of AFrame, are there plans to update this?