Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I fix this error? #489

Open
KavinduShamalka opened this issue Jun 10, 2022 · 0 comments
Open

How do I fix this error? #489

KavinduShamalka opened this issue Jun 10, 2022 · 0 comments

Comments

@KavinduShamalka
Copy link

error: duplicate lang item in crate std (which serde depends on): panic_impl.
|
= note: the lang item is first defined in crate sp_io (which ocw_demo depends on)
= note: first definition in sp_io loaded from /home/kshamalka/recipes/target/release/wbuild/ocw-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-0713151cf511a047.rmeta
= note: second definition in std loaded from /home/kshamalka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-4faf99cd6c5513da.rlib

error: duplicate lang item in crate std (which serde depends on): oom.
|
= note: the lang item is first defined in crate sp_io (which ocw_demo depends on)
= note: first definition in sp_io loaded from /home/kshamalka/recipes/target/release/wbuild/ocw-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-0713151cf511a047.rmeta
= note: second definition in std loaded from /home/kshamalka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-4faf99cd6c5513da.rlib

error: could not compile ocw-demo due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant