SolidJSS
SolidJSโ€ข13mo agoโ€ข
4 replies
Liquido

how can I see console.log output in Solid Start server actions?

I have an action like this:

const myAction = action(async function myAction(formData: FormData) {
  console.log(formData.get("image"))
})

function CreateItem() {
  <form action={myAction} method="post">
    <input type="file" name="image" />
  </form>
}


The console.log does not print anywhere for the action. Not in the dev server, nor in browser console. Is there a way to output items from actions?
Was this page helpful?