I found that my project which uses A-frame and three.js will trigger the following error:
Uncaught TypeError: THREE.CSS3DObject is not a constructor
I use this sample to test:
https://threejs.org/examples/#css3d_periodictable
It's source code:
https://github.com/mrdoob/three.js/blob/master/examples/css3d_periodictable.html
When I add the A-frame script to this sample, it triggers the same error.
<script src="https://threejs.org/build/three.js"></script>
<script src="https://threejs.org/examples/js/libs/tween.min.js"></script>
<script src="https://threejs.org/examples/js/controls/TrackballControls.js"></script>
<script src="https://threejs.org/examples/js/renderers/CSS3DRenderer.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/aframe/0.7.1/aframe.js"></script>
Does A-frame affect three.js? Can they be used together? How to make this sample work (stop displaying the error)?
Thanks!
0.8.2that may help.