-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught ReferenceError: Module is not defined #4
Comments
Hi, Tommaso |
This might help moving towards a more robust bundling solution: hiukim/mind-ar-js#295 |
Hey that's my PR! 👍 |
Hey that's cool! Can I just do npm i git+https://github.com/jmschrack/mind-ar-js/tree/vite.git to use it in my existing project? or are there other stepps to do? |
@Zaniyar you no longer need to! It's been merged into the MindAR official repo! |
but it's not on the main/master right?
|
@Zaniyar oh my code base is only for mind-ar-js , i don't work with react-three-mind. Sorry! |
hi @tommasoturchi , i've got it this issue resolved by migrating to vite and allow production build as a ESM module. You can review the changes at https://github.com/timothydang/react-three-mind/tree/feat/vite-esm-migration - launching examples is working. however, both image tracking and face tracking are now having issues, possibly due to the latest mind-ar version. |
Hi @timothydang |
Heya, first of all thanks a lot for this awesome library.
I am trying to implement it in my vite project, and I am getting this error: Uncaught ReferenceError: Module is not defined
Any ideas?
The text was updated successfully, but these errors were encountered: