I was running my substrate-blockchain on dev mode. And it is showing me this error.
Cannot create a runtime error=Other("can't convert a memory import into an export: failed to insert a new memory section
It was due to a different version of toml are present in the code. If the cargo tomls has version = "0.9.36" and some of the tomls have version ="0.9.41".That's why it is showing duplicate sections.
cargo build --releasemight help