Skip to content

Requested resource bevy_asset::server::AssetServer does not exist in the World. #14105

Answered by bugsweeper
midstreeeam asked this question in Q&A
Discussion options

You must be logged in to vote

You should take a look to a call stack in such cases, if panic occurs while plugin builds, then for solving problem you should add depending plugin before the plugin which doesn't build, if panic during runing schedules, then you can add plugins to the end of list. In this case render plugin forced me also add few more plugins.
My code:

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins((
            MinimalPlugins,
            bevy::asset::AssetPlugin::default(),
            bevy::render::RenderPlugin::default(),
            bevy::render::texture::ImagePlugin::default(),
            bevy::window::WindowPlugin::default(),
        ))
        .run();
}

My Cargo.toml:

[p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by midstreeeam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants