I installed (npm) the aframe and ar.js libaries; however, when I try to use the <a-marker>
or <a-marker-camera>
, I get the following error:
Unknown custom element: <a-marker-camera>
I was able to import the aframe library, but when I want to import and use the ar.js library, I get an error that the ar.js was not found.
I followed the AR implementation example from: https://aframe.io/blog/arjs/
Can someone tell me what I'm doing wrong?
<template>
<v-layout>
AR
<v-flex height="100%">
<a-scene embedded>
<a-sky color="#000"></a-sky>
<a-entity camera look-controls wasd-controls position="0 1 3" rotation="-15 0 0"></a-entity>
<a-box v-bind:color="color" opacity="0.75" visible="true"></a-box>
<a-marker-camera preset='hiro'></a-marker-camera>
</a-scene>
</v-flex>
</v-layout>
</template>
<script>
import 'aframe'
</script>
<style scoped>
</style>