1
error[E0432]: unresolved import `frame_support`
   --> /home/simson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-system-35.0.0/src/lib.rs:257:1
    |
257 | #[frame_support::pallet]
    | ^^^^^^^^^^^^^^^^^^^^^^^^ no `vec` in `__private`
    |
    = note: this error originates in the attribute macro `frame_support::pallet` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing one of these items instead
    |
257 | scale_info::prelude::vec
    |
257 | sp_std::vec
    |
257 | std::vec
    |

I suspect this is related to feature std not begin defined for some crate, but how do I find which one lacks this feature definition?

Could this be related to ORML?

1 Answer 1

4

Looks like the last two versions got released of frame-support-procedural got released accidentally as patch releases. To fix this, you need to add the following import somewhere in your workspace:

frame-support-procedural = "=30.0.0"

This should imported frame-support-procedural at exactly 30.0.0. The version that should match your frame-support.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.