substrate-docs icon indicating copy to clipboard operation
substrate-docs copied to clipboard

failed to load source for dependency of pallet-nicks

Open MartinYeung5 opened this issue 1 year ago • 0 comments

Is there an existing issue?

  • [X] I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • [X] 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

MartinYeung5 avatar Aug 04 '24 02:08 MartinYeung5