You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I'm just playing around with some game dev. I have a new project hosted here https://gitlab.com/freiguy1/strands (look at branch legion for this code) which is very small, just a main.rs so far. We had it building and deploying to GitLab Pages when our only dependency was macroquad. Now I'm experimenting with Legion. Building & running locally works great, and the wasm32 targeted build is working, but when actually visiting the web page with the game, I'm seeing errors in the browser console:
WASM failed to load, probably incompatible gl.js version
TypeError: import object field '__wbindgen_placeholder__' is not an Object
In Cargo.toml I've tried both
[target.'cfg(target_arch = "wasm32")'.dependencies]
legion = { version = "0.4", default-features = false, features = ["codegen", "stdweb"]}
and
[target.'cfg(target_arch = "wasm32")'.dependencies]
legion = { version = "0.4", default-features = false, features = ["codegen", "wasm-bindgen"]}
And I've received the same error. You can see the build steps in the .gitlab-ci.yaml file. Perhaps we're missing a step now that we're including legion. I didn't see any additional instructions on the legion readme. Any advice?
The text was updated successfully, but these errors were encountered:
Hi there, I'm just playing around with some game dev. I have a new project hosted here https://gitlab.com/freiguy1/strands (look at branch
legion
for this code) which is very small, just a main.rs so far. We had it building and deploying to GitLab Pages when our only dependency was macroquad. Now I'm experimenting with Legion. Building & running locally works great, and the wasm32 targeted build is working, but when actually visiting the web page with the game, I'm seeing errors in the browser console:WASM failed to load, probably incompatible gl.js version
TypeError: import object field '__wbindgen_placeholder__' is not an Object
In Cargo.toml I've tried both
and
And I've received the same error. You can see the build steps in the .gitlab-ci.yaml file. Perhaps we're missing a step now that we're including legion. I didn't see any additional instructions on the legion readme. Any advice?
The text was updated successfully, but these errors were encountered: