Error: Failed to publish your Function. Got error:

I’m trying to deploy a single _worker.js file to Cloudflare Pages as a application, and I got this when deploying:

2024-05-17T10:51:08.031364Z	Cloning repository...
......
2024-05-17T10:51:09.077026Z	
2024-05-17T10:51:09.077471Z	Using v2 root directory strategy
2024-05-17T10:51:09.102523Z	Success: Finished cloning repository files
2024-05-17T10:51:10.776693Z	Checking for configuration in a wrangler.toml configuration file (BETA)
2024-05-17T10:51:10.777541Z	
2024-05-17T10:51:10.883329Z	No wrangler.toml file found. Continuing.
2024-05-17T10:51:10.956745Z	No build output detected to cache. Skipping.
2024-05-17T10:51:10.957374Z	No dependencies detected to cache. Skipping.
2024-05-17T10:51:10.960752Z	No build command specified. Skipping build step.
2024-05-17T10:51:10.961291Z	Found _worker.js in output directory. Uploading.
2024-05-17T10:51:11.845062Z	✨ Compiled Worker successfully
2024-05-17T10:51:11.91942Z	Validating asset output directory
2024-05-17T10:51:18.244527Z	Success: Assets published!
2024-05-17T10:51:18.7381Z	Error: Failed to publish your Function. Got error: multipart uploads must contain a readable body_part or main_module

I searched for the error info, but with no helpful information. Need help.

Thank you.