i am clone substrate node template from this command "git clone --branch latest --depth 1 https://github.com/substrate-developer-hub/substrate-node-template"
add pallet_democracy in runtime/cargo.toml
then run below command "cargo check -p node-template-runtime"
i will get below error
error: failed to select a version for syn
.
... required by package frame-support-procedural v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.26#e8a7d161)
... which satisfies git dependency frame-support-procedural
of package frame-support v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.26#e8a7d161)
... which satisfies git dependency frame-support
of package frame-benchmarking v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.26#e8a7d161)
... which satisfies git dependency frame-benchmarking
of package pallet-democracy v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.26#e8a7d161)
... which satisfies git dependency pallet-democracy
of package node-template-runtime v4.0.0-dev (/home/amit/Substrate/New/substrate-node-template/runtime)
... which satisfies path dependency node-template-runtime
(locked to 4.0.0-dev) of package node-template v4.0.0-dev (/home/amit/Substrate/New/substrate-node-template/node)
versions that meet the requirements ^1.0.98
are: 1.0.98
all possible versions conflict with previously selected packages.
previously selected package syn v1.0.95
... which satisfies dependency syn = "^1.0.84"
(locked to 1.0.95) of package async-trait v0.1.53
... which satisfies dependency async-trait = "^0.1"
(locked to 0.1.53) of package jsonrpsee-core v0.13.1
... which satisfies dependency jsonrpsee-core = "^0.13.1"
(locked to 0.13.1) of package jsonrpsee v0.13.1
... which satisfies dependency jsonrpsee = "^0.13.0"
(locked to 0.13.1) of package node-template v4.0.0-dev (/home/amit/Substrate/New/substrate-node-template/node)
failed to select a version for syn
which could resolve this conflict
How to solve it!!
cargo update -p syn:1.0.95