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

near_sdk::store::LazyOption #1184

Closed
1 task
gucoi opened this issue May 28, 2024 · 3 comments
Closed
1 task

near_sdk::store::LazyOption #1184

gucoi opened this issue May 28, 2024 · 3 comments

Comments

@gucoi
Copy link

gucoi commented May 28, 2024

What talent are you looking for?

None

What you need to be done?

near_sdk version 5.1.0 and feature is unstable version, but it happen some bug when i use the lazyOption

│ error[E0432]: unresolved import near_sdk::store::LazyOption
│ --> src/lib.rs:1:5
│ |
│ 1 | use near_sdk::store::LazyOption;
│ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no LazyOption in store
│ |
│ note: found an item that was configured out
│ --> /Users//.cargo/registry/src/rsproxy.cn-8f6827c7af8/near-sdk-5.1.0/src/store/mod.rs:69:22
│ |
│ 69 | pub use lazy_option::LazyOption;
│ | ^^^^^^^^^^
│ = note: the item is gated behind the unstable feature

│ For more information about this error, try rustc --explain E0432.
│ error: could not compile factory_example (lib) due to 1 previous error
Error: Error { repr: Custom { kind: Io, error: cd "/Users//near/near_factory_example" && RUSTFLAGS="-C link-arg=-s" "/Users//.rustup/toolchains/stable-x86_64-apple-darwin/bin/cargo" "build" "--message-format=json-render-diagnostics" "--target" "wasm32-unknown-unknown" "--release" "--color" "always" failed with exit code: Some(101) } }

Tags

No response

Deadline

No response

Currency

USDC.e

Amount

No response

KYC

  • Use KYC Verification
Copy link

heroes-bounty bot commented May 28, 2024

Navigate to HEROES
to submit the bounty.

@gucoi gucoi changed the title Bounty: near_sdk::store::LazyOption May 29, 2024
Copy link

heroes-bounty bot commented May 29, 2024

If you have already tried to submit a bounty using the link above,
then close the browser tab with HEROES page and go to this link again.

@frol
Copy link
Collaborator

frol commented Jul 26, 2024

The error clearly states that you need to enable unstable feature while it is hidden under that feature flag. Subscribe to #1199 to follow the stabilization effort

@frol frol closed this as completed Jul 26, 2024
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

2 participants