Missing Entrypoint

I'm getting this error when using the GHA for wrangler. [ERROR] Missing entry-point to Worker script or to assets directory Running wrangler versions upload locally works in the sense that it at least uploads. I'm migrating from pages to workers for an Angular app. It's a static site. As I understand it, I only need an Entrypoint/_worker.js file if I had Pages functions. Hoping someone can confirm my assessment. I'm 90% GHA just isn't finding the wrangler.jsonc at all, but this error is oddly specific and implies it finds the file but expects the "main" property.
2 Replies
Walshy
Walshy6mo ago
if your wrangler json has an assets section then yeah it may not be finding the file it's saying there's either no main (meaning worker code) or no assets section in config
dapperdandev
dapperdandevOP6mo ago
{
"name": "exp",
"compatibility_date": "2025-05-28",
"assets": {
"directory": "./dist"
}
}
{
"name": "exp",
"compatibility_date": "2025-05-28",
"assets": {
"directory": "./dist"
}
}
Thanks. I'll troubleshoot my actions

Did you find this page helpful?