SolidJSS
SolidJSโ€ข6mo agoโ€ข
1 reply
ChrisThornham

Server Functions cannot be nested in other blocks or functions

I just tried to upgrade to SolidStart 1.1.x.

I started getting the Server Functions cannot be nested in other blocks or functions everywhere.

I read this post by @Atila .

@Atila you said: "I'm still working on a better DX, either to migrate or to add code-extraction to the plugin."

Does that mean my code should eventually work again? Afterall, "use server" was designed to let you to nest server functions, right?

I'm not trying to complain, I'm just trying to save myself two refactors if possible.

If my code as written will eventually work again, I'll skip this update and wail until "use server" works again.

Thanks,

Chris
GitHub
Duplicates I have searched the existing issues Latest version I have tested the latest version Current behavior ๐Ÿ˜ฏ Previously we were able to inline server functions directly in components. Since v1...
[Bug?]: (v1.1.0) Unable to inline server functions in components ยท...
Was this page helpful?