Skip to content

failed to load source for dependency of pallet-nicks #2170

Open
@MartinYeung5

Description

@MartinYeung5

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Bug report for compiling, code snippets, templates, etc.

when input command:
"cargo check -p node-template-runtime --release"
it showed the error message "failed to load source for dependency of pallet-nicks"

Steps to reproduce the problem

step1:
Open the runtime/Cargo.toml
add following line under dependency :
pallet-nicks = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "polkadot-v1.0.0" }

step2:
in runtime/Cargo.toml ,
Add the "pallet-nicks/std" features to the list of features"

step3:
Check that the new dependencies resolve correctly by running the following command:
cargo check -p node-template-runtime --release

results:
failed to load source for dependency of pallet-nicks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions