Build fails trying to compile leptos-use #13

Open
opened 2024-09-28 15:08:01 +00:00 by cmdln · 1 comment
cmdln commented 2024-09-28 15:08:01 +00:00 (Migrated from gitlab.com)

I am working on a project using leptos 0.6 with nightly. I used cargo add leptos-oidc but when I then attempt cargo leptos build, it fails to compile at the leptos-use crate.

   Compiling leptos-use v0.10.10
error[E0599]: no variant or associated item named `__Nonexhaustive` found for enum `web_sys::NotificationPermission` in the current scope
   --> /home/cmdln/.cargo/registry/src/index.crates.io-6f17d22bba15001f/leptos-use-0.10.10/src/use_web_notification.rs:451:46
    |
451 | ...ificationPermission::__Nonexhaustive => Self::Default,
    |                         ^^^^^^^^^^^^^^^ variant or associated item not found in `NotificationPermission`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `leptos-use` (lib) due to 1 previous error
Error: Failed to build watch

I have a repro on a branch on my forge: https://git.cmdln.net/cmdln/watch/src/branch/add-oidc

I am working on a project using leptos 0.6 with nightly. I used `cargo add leptos-oidc` but when I then attempt `cargo leptos build`, it fails to compile at the leptos-use crate. ``` Compiling leptos-use v0.10.10 error[E0599]: no variant or associated item named `__Nonexhaustive` found for enum `web_sys::NotificationPermission` in the current scope --> /home/cmdln/.cargo/registry/src/index.crates.io-6f17d22bba15001f/leptos-use-0.10.10/src/use_web_notification.rs:451:46 | 451 | ...ificationPermission::__Nonexhaustive => Self::Default, | ^^^^^^^^^^^^^^^ variant or associated item not found in `NotificationPermission` For more information about this error, try `rustc --explain E0599`. error: could not compile `leptos-use` (lib) due to 1 previous error Error: Failed to build watch ``` I have a repro on a branch on my forge: https://git.cmdln.net/cmdln/watch/src/branch/add-oidc
erefes commented 2025-01-08 14:31:40 +00:00 (Migrated from gitlab.com)
This is already solved here: https://gitlab.com/kerkmann/leptos_oidc/-/merge_requests/8
Sign in to join this conversation.
No labels
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kerkmann/leptos_oidc#13
No description provided.