You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: expected type, found `,`
--> src/app.rs:108:1
|
108 | #[component]
| ^^^^^^^^^^^^
| |
| expected type
| while parsing this struct
|
= note: this error originates in the derive macro `::leptos::typed_builder::TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info)
error: proc-macro derive produced unparsable tokens
--> src/app.rs:108:1
|
108 | #[component]
| ^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `component` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0609]: no field `phantom` on type `InfoGridPropsBuilder<NUM_ROWS, NUM_COLS, ((), __cell_height, __data)>`
--> src/app.rs:108:1
|
108 | #[component]
| ^^^^^^^^^^^^ unknown field
|
= note: available fields are: `fields`
= note: this error originates in the derive macro `::leptos::typed_builder::TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0609]: no field `phantom` on type `InfoGridPropsBuilder<NUM_ROWS, NUM_COLS, (__cell_width, (), __data)>`
--> src/app.rs:108:1
|
108 | #[component]
| ^^^^^^^^^^^^ unknown field
|
= note: available fields are: `fields`
= note: this error originates in the derive macro `::leptos::typed_builder::TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0609]: no field `phantom` on type `InfoGridPropsBuilder<NUM_ROWS, NUM_COLS, (__cell_width, __cell_height, ())>`
--> src/app.rs:108:1
|
108 | #[component]
| ^^^^^^^^^^^^ unknown field
|
= note: available fields are: `fields`
= note: this error originates in the derive macro `::leptos::typed_builder::TypedBuilder` (in Nightly builds, run with -Z macro-backtrace for more info)
Investigating this, I realized it's a bug in deriving TypedBuilder. See idanarye/rust-typed-builder#106. Leptos would need to update its dependencies once fixed.
Leptos Dependencies
leptos = { version = "0.4", features = ["csr", "nightly"] }
leptos_meta = { version = "0.4", features = ["csr", "nightly"] }
leptos_router = { version = "0.4", features = ["csr", "nightly"] }
The text was updated successfully, but these errors were encountered:
Reading this and the linked issue it looks like something that needs to be fixed in typed-builder and that you've identified pretty specifically. I'd suggest that if you want to see it resolved here, making a PR there to fix the issue with the extra comma would be the fastest way!
Reading this and the linked issue it looks like something that needs to be fixed in typed-builder and that you've identified pretty specifically. I'd suggest that if you want to see it resolved here, making a PR there to fix the issue with the extra comma would be the fastest way!
made a PR and maintainer has merged it - we just need to bump the version from typed-builder = "0.14" to typed-builder = "0.15"
gbj
added a commit
that referenced
this issue
Aug 4, 2023
Describe the bug
I wanted to do something like
which gets you
Investigating this, I realized it's a bug in deriving TypedBuilder. See idanarye/rust-typed-builder#106. Leptos would need to update its dependencies once fixed.
Leptos Dependencies
The text was updated successfully, but these errors were encountered: