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

Invalid web-sys minimal version #3254

Closed
ilaborie opened this issue Nov 25, 2024 · 0 comments · Fixed by #3256
Closed

Invalid web-sys minimal version #3254

ilaborie opened this issue Nov 25, 2024 · 0 comments · Fixed by #3256

Comments

@ilaborie
Copy link
Contributor

Problem

The minimal version of web-sys is 0.3.56 (package/web/Cargo.toml) and the package/web/src/events/mounted.rs module use the set_behavior method that is existing since 0.3.70.

That's trigger compilation issues when we build the project with minimal version.

error[E0599]: no method named `set_behavior` found for struct `ScrollIntoViewOptions` in the current scope
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dioxus-web-0.6.0-alpha.5/src/events/mounted.rs:74:25
   |
74 |                 options.set_behavior(web_sys::ScrollBehavior::Instant);
   |                         ^^^^^^^^^^^^
   |
help: there is a method `behavior` with a similar name
   |
74 |                 options.behavior(web_sys::ScrollBehavior::Instant);
   |                         ~~~~~~~~

Environment:

  • Dioxus version: 0.6.0-alpha.5
  • Rust version: 1.82.0
  • OS info: MacOS
  • App platform: web`

Questionnaire

I would like to fix and I have a solution (bump web-sys to 0.3.70)

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

Successfully merging a pull request may close this issue.

1 participant