Skip to content

Cannot use any icons. Everything up-to-date.  #15

@konyogony

Description

@konyogony

Hi! This is probably my inexperience but I have encountered an issue where I am unable to use any of the icons.

Here is my Cargo.toml file:

[package]
name = "kony-web"
version = "0.1.0"
edition = "2021"

[dependencies]
yew = "0.21"
web-sys = "0.3"
yew-router = "0.18"
yew_icons = {version = "0.8", features = ["BOOTSTRAP_DISCORD"]}

My navbar.rs:

use yew_icons::{Icon, IconId};
...some code
 html! {
        <div class="w-full bg-gray-500/20 flex flex-row items-center px-[24rem] py-4 gap-1 text-xl font-semibold backdrop-blur-sm border-b border-white/5 sticky top-0">
            {title_home}
            <div class="ml-auto flex flex-row gap-8 items-center text-base font-semibold">
                {home_nav}
                {discord_nav}
                <div class="w-[1.5px] rounded-md h-5 bg-white/5" />
                <Icon icon_id={IconId::BOOTSTRAP_DISCORD}/> // <-------- Error here
            </div>
        </div>
    }

Error in terminal:

2024-08-13T11:57:07.324305Z ERROR ❌ error
error from build pipeline

Caused by:
    0: error getting cargo metadata
    1: `cargo metadata` exited with an error:     Updating crates.io index
       error: failed to select a version for `yew_icons`.
           ... required by package `kony-web v0.1.0 (/home/kony/Documents/kony_clowning_2/tailwind-yew)`
       versions that meet the requirements `^0.8` (locked to 0.8.0) are: 0.8.0
       
       the package `kony-web` depends on `yew_icons`, with features: `BOOTSTRAP_DISCORD` but `yew_icons` does not have these features.
       
       
       failed to select a version for `yew_icons` which could resolve this conflict
       

Notes:

  • I dont have any more errors
  • Downgrading yew_icons doesnt help.

I would appreciate any help. Thanks in advance and I appologise if I am making some silly mistake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions