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
Describe the bug
Running leptos-markdown commit 5d20776 (latest) with leptos 0.6 will give following error,
error[E0277]: the trait bound `fn(MarkdownProps) -> impl leptos_dom::IntoView {Markdown}: leptos::Component<_>` is not satisfied
--> src\main.rs:5:31
|
5 | mount_to_body(|| view! { <Markdown src="# Markdown Power !"/> })
| ^^^^^^^^ the trait `leptos::Component<_>` is not implemented for fn item `fn(MarkdownProps) -> impl leptos_dom::IntoView {Markdown}`
|
help: trait impls with same name found
--> C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\leptos-0.5.7\src\lib.rs:309:1
|
309 | impl<F, R> Component<EmptyPropsBuilder> for F where F: FnOnce() -> R {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
310 |
311 | / impl<P, F, R> Component<P> for F
312 | | where
313 | | F: FnOnce(P) -> R,
314 | | P: Props,
| |_____________^
= note: perhaps two different versions of crate `leptos` are being used?
note: required by a bound in `component_props_builder`
--> C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\leptos-0.6.11\src\lib.rs:327:15
|
326 | pub fn component_props_builder<P: PropsOrNoPropsBuilder>(
| ----------------------- required by a bound in this function
327 | _f: &impl Component<P>,
| ^^^^^^^^^^^^ required by this bound in `component_props_builder`
error[E0277]: the trait bound `&fn(MarkdownProps) -> impl leptos_dom::IntoView {Markdown}: ComponentConstructor<_>` is not satisfied
--> src\main.rs:5:31
|
5 | mount_to_body(|| view! { <Markdown src="# Markdown Power !"/> })
| -^^^^^^^^ the trait `ComponentConstructor<_>` is not implemented for `&fn(MarkdownProps) -> impl leptos_dom::IntoView {Markdown}`
| |
| required by a bound introduced by this call
|
note: required by a bound in `component_view`
--> C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\leptos-0.6.11\src\lib.rs:333:34
|
333 | pub fn component_view<P>(f: impl ComponentConstructor<P>, props: P) -> View {
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `component_view`
For more information about this error, try `rustc --explain E0277`.
To Reproduce
Steps to reproduce the behavior:
Create a basic Leptos CSR app.
Add Leptos Markdown as a dependency. Which is, leptos-markdown = { git="https://github.com/rambip/leptos-markdown", rev = "96042d8" }.
Start the app.
See error.
The text was updated successfully, but these errors were encountered:
Describe the bug
Running leptos-markdown commit 5d20776 (latest) with leptos 0.6 will give following error,
To Reproduce
Steps to reproduce the behavior:
leptos-markdown = { git="https://github.com/rambip/leptos-markdown", rev = "96042d8" }
.The text was updated successfully, but these errors were encountered: