hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.14k stars 394 forks source link

npm installation creates error when trying to run #330

Closed kordou closed 1 year ago

kordou commented 1 year ago

HI, i am trying to install THREE from npm but when i i mport the Lib import { MindARThree } from "mind-ar/dist/mindar-image-three.prod.js";

i ma getting this error.

Failed to resolve 'three/addons/renderers/CSS3DRenderer.js' from './node_modules/mind-ar/dist/mindar-image-three.prod.js'

hree/addons/renderers should be three/examples/jsm/renderers.

compiling with parcel

how can i correct this

thanks

hiukim commented 1 year ago

you might need to install three as well, which is an external dependency since v1.2.0

Refer to this as an npm example: https://github.com/hiukim/mind-ar-js-react