Describe the bug
I've got a local import in leptos that when I add radx-leptos to my app as a hydrate only component it breaks.
To Reproduce
Steps to reproduce the behavior:
In my cargo.toml file for my leptos app I have:
`radix-leptos = { version = "0.9.0", optional=true, features=["hydrate"] }
[features]
hydrate = ["leptos/hydrate", "dep:serde", "radix-leptos/hydrate"]
ssr = [
"dep:axum-extra",
"dep:axum",
"dep:tokio",
"dep:tower",
"dep:tower-http",
"dep:leptos_axum",
"leptos/ssr",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:tracing",
"dep:bincode",
"dep:serde",
"dep:interprocess",
"dep:mime_guess",
"dep:infer",
"dep:tokio-util",
"dep:rayon",
]
[workspace.metadata.leptos]
bin-package = "server"
[profile.wasm-release]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1
[package.metadata.cargo-all-features]
denylist = ["axum", "tokio", "tower", "tower-http", "leptos_axum", "radix-leptos"]
skip_feature_sets = [["ssr", "hydrate"], []]
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Firefox, Safari]
- Rust version: [e.g. 1.70.0]
- Leptos version: [e.g. 0.8.0]
- Radix-Leptos version: [e.g. 0.1.0]
Additional context
Add any other context about the problem here.
Code Example
use leptos::*;
use radix_leptos_primitives::*;
#[component]
pub fn MyComponent() -> impl IntoView {
view! {
<Button on_click=Callback::new(|_| println!("Clicked!"))>
"Click me!"
</Button>
}
}
I import my client in kinda a goofy way:
#[path = "../../Rust-Hydrus/src/scr/intcoms/client.rs"]
pub mod client;
#[cfg(feature = "ssr")]
#[path = "../../Rust-Hydrus/src/scr/sharedtypes.rs"]
pub mod sharedtypes;```
but for some reason when I add radix-leptos to my dependencies it causes a fails to resolve error:
use client::types::ParentsType;
| ^^^^^^ use of unresolved module or unlinked crate `client`
Describe the bug
I've got a local import in leptos that when I add radx-leptos to my app as a hydrate only component it breaks.
To Reproduce
Steps to reproduce the behavior:
In my cargo.toml file for my leptos app I have:
`radix-leptos = { version = "0.9.0", optional=true, features=["hydrate"] }
[features]
hydrate = ["leptos/hydrate", "dep:serde", "radix-leptos/hydrate"]
ssr = [
"dep:axum-extra",
"dep:axum",
"dep:tokio",
"dep:tower",
"dep:tower-http",
"dep:leptos_axum",
"leptos/ssr",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:tracing",
"dep:bincode",
"dep:serde",
"dep:interprocess",
"dep:mime_guess",
"dep:infer",
"dep:tokio-util",
"dep:rayon",
]
[workspace.metadata.leptos]
bin-package = "server"
[profile.wasm-release]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1
[package.metadata.cargo-all-features]
denylist = ["axum", "tokio", "tower", "tower-http", "leptos_axum", "radix-leptos"]
skip_feature_sets = [["ssr", "hydrate"], []]
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Code Example
I import my client in kinda a goofy way: