Open rodrigocam opened 1 year ago
what is the reply of the http query when it tries to load the file?
you can also use https://crates.io/crates/wasm-server-runner instead of trunk, it's easier to setup
You likely need to add <link data-trunk rel="copy-dir" href="assets" />
to your index.html
.
Trunk seems to be made for serving single page applications, so you're seeing it serve html up where a normal webserver would be giving you a 404 error for the missing asset.
I'm having this issue when loading .gltf assets, using bevy targeting wasm with Trunk.
Discussed in https://github.com/bevyengine/bevy/discussions/5972