Prototype game no longer working in browser after adding legion
- Langage dominant
- Rust
- Étoiles
- 1.7k
- Forks
- 140
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.