-
Notifications
You must be signed in to change notification settings - Fork 934
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
node_modules animation-mixer not working #605
Comments
I know nothing about nextjs so I can't help you with this specific setup. But I have a project using just webpack and a static index.html, that works fine using aframe cdn or npm dependencies. |
Thanks for the quick response, everything works, like the 3d model displays in the camera above the marker, except for the animation when node_modules and
I think this would be the same with webpack, if you could share your code where the animation works with glb and animation-mixer that would be helpful for me if it works to see if I am doing some setup incorrectly.
I am saying if I use import and node_modules animate doesn't work, this is what I am using and would like to get working, I am just saying that my glb 3d asset and animation normally works when using a cdn , I don't see any console errors. But these are the logs I see around aframe / ar.js when the page loads
|
If you see the "WARNING: Multiple instances of Three.js being imported." message that's not normal with latest aframe-extras. Double check you don't include the scripts twice. |
Thanks but this doesn't explain the reported issue, it animated for me with cdn in index.html, my issue I am reporting it is doesn't animate when I try to import aframe, aframe-extras, & @ar-js-org/ar.js as node modules. |
You will have a better change someone to help with your issue if you share a link where we can reproduce it. You can create a bare minimum NextJS app with one model that has an animation on https://glitch.com/~aframe for example. Also be sure that the scripts mainly aframe-extras that includes animation-mixer component are loaded before the a-scene is created. NextJS may auto add a defer script for example that's not compatible with having a a-scene in index.html, you would need to configure the script insertion to not be defer or create a-scene dynamically when you're sure the scripts are loaded. I don't know this stack so can't help you further on it. |
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
When I use nextjs / webpack /node_modules the animation-mixer does not work, but it works with pure html / js
If the current behavior is a bug, please provide the steps to reproduce.
create a nextjs project (or any project that uses node_modules)
npm install @ar-js-org/ar.js aframe aframe-extras`
render a client component like
The 3d model shows up but does not animate, where as w/o node_modules it works and animates
Please mention other relevant information such as the browser version, Operating System and Device Name
Brave Version 1.66.110 Chromium: 125.0.6422.60 (Official Build) (64-bit) Ubuntu 24.04 LTS Desktop computer
What is the expected behavior?
Should animate the glb 3d asset
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: