#[server] macro errors #1039
-
Hello, I am relatively new to Rust and proc macros in particular. I am attempting to use the #[server] macro in the same file as my component and I am running into the following error:
I have attempted placing the macro in the main.rs file as well as putting it behind a ssr flag but I am just grasping at straws. What am I missing? Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
evan-hines-js
May 13, 2023
Replies: 1 comment
-
My function wasn't returning Result<T, ServerFnError>. Just a note for anyone who runs into this error in the future since it's opaque. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
evan-hines-js
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My function wasn't returning Result<T, ServerFnError>. Just a note for anyone who runs into this error in the future since it's opaque.