hiukim / mind-ar-js

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

Uncaught ReferenceError: require is not defined #416

Open DevaPandiyan opened 1 year ago

DevaPandiyan commented 1 year ago

im using mind ar face in build production in react js not working. locally its works fine but in production not working how to fix it pls help me .....

Screenshot 2023-06-17 at 8 27 16 AM
DevaPandiyan commented 1 year ago

import 'mind-ar/dist/mindar-face.prod.js'; import 'mind-ar/dist/mindar-face-aframe.prod';

which one is best for production ?

Screenshot 2023-06-17 at 9 48 23 AM

the sec one is shows the start problem

Screenshot 2023-06-17 at 9 48 59 AM

then first one is throwing the error

Screenshot 2023-06-17 at 8 27 16 AM
Thiraphat-K commented 12 months ago

@hiukim Please help me by telling me the cause, as I am facing a similar issue. The problem is Uncaught TypeError: Cannot read properties of undefined (reading 'start') Thank you so much.

hiukim commented 5 months ago

there is an react example: https://github.com/hiukim/mind-ar-js-react/tree/master

does it work?