_worker.js fails publishing

I am not sure what’s wrong, but I keep getting this error Error: Failed to publish your Function. Got error: multipart uploads must contain a readable body_part or main_module.

What does it mean?

Where specifically are you receiving this error? Is it when using Pages CI? Wrangler? Hitting the API manually?

In the pages CI