Apps that deploy normally under Pages will not deploy on Workers

Has anyone tried to address the "Deploying to Cloudflare's global network", the error that occurs when trying to build and deploy apps to Workers? There's no documentation or any help anywhere. Here is the error: npm warn exec The following package was not found and will be installed: [email protected] 14:05:18.268
14:05:18.268 ⛅️ wrangler 4.18.0 14:05:18.269 ─────────────────── 14:05:18.274
14:05:18.342 ✘ [ERROR] Missing entry-point to Worker script or to assets directory This is frustrating because Cloudflare indicates ending support for Pages (Which I don't get - but okay) and wants everyone to use Workers - but builds fail and there's no support or documentation. I can deploy everywhere else (Google Cloud, AWS, Cloudflare Pages, Netlify, Render, Azure Static Apps, Digital Ocean) EVERYWHERE!!!!! -- Except Cloudflare Workers - What am I missing? and why is Cloudflare ending Pages support? I want to use Cloudflare because the ease of DNS and security, but I am FORCED to use someone else until we figure this out.
8 Replies
Hard@Work
Hard@Work4mo ago
Do you have a link to your repo you can share?
WarithN
WarithNOP4mo ago
Yes - This simple "Hello World" project will build and work on every platform including Cloudflare Pages without any errors - But bombs out on Cloudflare Workers. https://github.com/WarithNiallah/HelloWorld
GitHub
GitHub - WarithNiallah/HelloWorld: 2025 Hello World (May)
2025 Hello World (May). Contribute to WarithNiallah/HelloWorld development by creating an account on GitHub.
Hard@Work
Hard@Work4mo ago
For Workers, you need a wrangler.json in your repo, to tell wrangler which directory to upload
WarithN
WarithNOP4mo ago
Thanks - Is this documented somewhere, I'd like to try it.
Hard@Work
Hard@Work4mo ago
Here's a link to the config docs: https://developers.cloudflare.com/workers/wrangler/configuration/#assets You should just need something like:
{
"name": "helloworld",
"compatibility_date": "2025-06-02",
"assets":
"directory": "dist" // or whatever your output directory is
}
}
{
"name": "helloworld",
"compatibility_date": "2025-06-02",
"assets":
"directory": "dist" // or whatever your output directory is
}
}
Cloudflare Docs
Configuration
Use a configuration file to customize the development and deployment setup for your Worker project and other Developer Platform products.
WarithN
WarithNOP4mo ago
Thanks - I will try this now. Hope this works! (Looks like the brackets might be off, but I get the idea) - I'll report back ASAP
Hard@Work
Hard@Work4mo ago
Oops, I forgot a comma after the name...
WarithN
WarithNOP4mo ago
I tried it, and this error: 15:04:47.091 Success: Build command completed 15:04:47.091 Executing user deploy command: npx wrangler deploy 15:04:48.323 npm warn exec The following package was not found and will be installed: [email protected] 15:05:11.680
15:05:11.680 ⛅️ wrangler 4.18.0 15:05:11.680 ─────────────────── 15:05:14.453 Total Upload: 92.27 KiB / gzip: 19.24 KiB 15:05:15.961
15:05:16.032 ✘ [ERROR] A request to the Cloudflare API (/accounts/249bb82ff951e4c0ea17674687965d1c/workers/scripts/hellouniverse/versions) failed. 15:05:16.032
15:05:16.032 The uploaded script has no registered event handlers. Please visit the following website for more information: https://developers.cloudflare.com/workers/runtime-apis/handlers/. [code: 10068] 15:05:16.032 To learn more about this error, visit: https://developers.cloudflare.com/workers/runtime-apis/handlers/ 15:05:16.032
15:05:16.032
15:05:16.032 If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose 15:05:16.032
15:05:16.033
15:05:16.033
15:05:16.033 Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md 15:05:16.121 Failed: error occurred while running deploy command ** No offense, but it is a mistake to change to an entirely different platform and abandon what works everywhere else, especially with MULTIPLE competitors. Cloudflare is causing more work and configuration errors due to an Executive decision. It's just easier to deploy elsewhere. I gave up.
Cloudflare Docs
Handlers
Methods, such as fetch(), on Workers that can receive and process external inputs.
Cloudflare Docs
Handlers
Methods, such as fetch(), on Workers that can receive and process external inputs.
GitHub
Build software better, together
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
From An unknown user
From An unknown user
From An unknown user
GitHub
workers-sdk/packages/wrangler/telemetry.md at main · cloudflare/wo...
⛅️ Home to Wrangler, the CLI for Cloudflare Workers® - cloudflare/workers-sdk

Did you find this page helpful?