Skip to content

Conversation

@amirt01
Copy link

@amirt01 amirt01 commented Dec 15, 2025

The demo app was using the old loadFromXML API which was renamed to mj_loadXML in commit 49394d5 (Nov 19, 2025) as part of a broader effort to align WASM bindings with native C API naming conventions.

This change updates the demo to use the current API, fixing the error:
TypeError: mujoco.MjModel.loadFromXML is not a function

Fixes #2960

@google-cla
Copy link

google-cla bot commented Dec 15, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@amirt01 amirt01 force-pushed the fix-wasm-demo-loadxml branch from 09d7494 to 3b6091a Compare December 15, 2025 07:00
The demo app was using the old loadFromXML API which was renamed to
mj_loadXML in commit 49394d5 (Nov 19, 2025) as part of a broader
effort to align WASM bindings with native C API naming conventions.

This change updates the demo to use the current API, fixing the error:
'TypeError: mujoco.MjModel.loadFromXML is not a function'

Fixes google-deepmind#2960
@amirt01 amirt01 force-pushed the fix-wasm-demo-loadxml branch from 3b6091a to af00451 Compare December 15, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wasm demo calling an error API

1 participant