#Getting an error running admin panel in dev.

1 messages · Page 1 of 1 (latest)

sterile bear
#

hi every one,
Went through and fixed up loads of issues to keep inline with our biome rules in our other projects. now that iv finished that job, front end works just fine, but i cant run the admin panel.
i get an error:

[SERVER] GET /admin 500 in 605ms
[SERVER] ⨯ Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.
[SERVER] <... config={{...}} dateFNSKey="en-US" fallbackLang=... isNavOpen=... languageCode=... languageOptions=... locale=... permissions=... serverFunction={function serverFunction} switchLanguageServerAction=... theme=... translations=... user=... children=...>
[SERVER] ^^^^^^^^^^^^^^^^^^^^^^^^^
[SERVER] at stringify (<anonymous>) {
[SERVER] digest: '164239498'
[SERVER] }

does anyone have any ideas on where to start on tracking this down ?

tawny oysterBOT
upbeat shoal
#

Are you using biome.js

sterile bear
#

solved: biome fix had modified some of the admin panel front end code to remove use server for the function calls.

upbeat shoal
#

Yep

#

You wouldn't believe me if I told you how many users had this issue

#

Hence the initial question - super glad you figured it out though