polkadot-developers / substrate-docs

Substrate Developer Hub. Substrate is powered by best in class cryptographic research and comes with peer to peer networking, consensus mechanisms, and much more.
https://docs.substrate.io
BSD Zero Clause License
131 stars 275 forks source link

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

Open MartinYeung5 opened 3 months ago

MartinYeung5 commented 3 months ago

Is there an existing issue?

Experiencing problems? Have you tried our Stack Exchange first?

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