-
Notifications
You must be signed in to change notification settings - Fork 937
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
es-modules @ar-js-org/ar.js doesn't work #607
Comments
Guys, is there anyone here whose es-modules work? |
EDIT: Just looked at #538: You need to make sure your A-Frame and AR.js versions match. AR.js 3.4.5 works with A-Frame 1.3.0. Ensure you have matching versions. |
@gnvcor to add to this: if you don't explicitly state the A-Frame version in If you explicitly add A-Frame at version 1.3.0 in the package.json, it definitely works with the es-module import: I have tested it just now. |
@lvjzijin can you provide your full code including build scripts, if possible? Thanks. |
package.json |
Ah, I think there are some long standing issues with using AR.js and React together, due to the different ways A-Frame and React initialise. It's possible #615 may address this. Does it work for you with modules but without React? |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I import package @ar-js-org/ar.js in my project and i catch error:
If the current behavior is a bug, please provide the steps to reproduce.
import package @ar-js-org/ar.js
My code:
Please mention other relevant information such as the browser version, Operating System and Device Name
Google Chrome 126.0.6478.56
macos 14.4 (23E214)
What is the expected behavior?
If this is a feature request, what is motivation or use case for changing the behavior?
The text was updated successfully, but these errors were encountered: