![]() # Objective - Example `custom_asset_reader` fails to build in wasm ``` $ cargo build --profile release --target wasm32-unknown-unknown --example custom_asset_reader Compiling bevy v0.12.0 (/Users/runner/work/bevy-website/bevy-website) error[E0432]: unresolved import `bevy::asset::io::file` --> examples/asset/custom_asset_reader.rs:7:9 | 7 | file::FileAssetReader, AssetReader, AssetReaderError, AssetSource, AssetSourceId, | ``` ## Solution - Wrap the platform default asset reader instead of the `FileAssetReader` |
||
---|---|---|
.. | ||
processing | ||
asset_loading.rs | ||
custom_asset_reader.rs | ||
custom_asset.rs | ||
hot_asset_reloading.rs |