Skip to content
Discussion options

You must be logged in to vote

I found the answer. Because lib is also compiled when compiling the bin, of course it is unable to find the behavior module. And since the "ssr" feature is enabled, the server function compiles to the server version.

I have to safeguard the whole content of lib.rs inside a #[cfg(feature = "hydrate")]. I originally removed that and solved it differently. But now it works again.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by TimerErTim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants