_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

Hello @akshaybabloo, I just replied to you in the ticket #3142526 with a step-by-step guide to check.

Same problem here. Could you please share more details about the solution?