workers-sdk: π BUG: missing entry-point
What version of Wrangler are you using?
2.0.29
What operating system are you using?
Mac
Describe the Bug
β [ERROR] Missing entry-point: The entry-point should be specified via the command line (e.g. wrangler dev path/to/script) or the main config field
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 15 (4 by maintainers)
Usually this message surfaces when Wrangler canβt detect the entry-point for your Worker, which should be specified either on the command line when running Wrangler:
or in Wranglerβs config file:
If youβve specified either of those options and Wrangler still surfaces the message about a missing entrypoint, please open a new issue with a minimal reproduction and we can investigate further.
Had the same problem. Ended up creating worker in Cloudflare dashboard and then initialising locally.
npm install -g wranglerwrangler loginwrangler init --from-dash your-random-worker-nameThis creates all local dependencies and setup.
Then cd into your project dir (your-random-worker-name) and run
npm run startProfit!
Same issue for me in a simple github actions (monorepo with pnpm workspaces)
Facing same issue. @cameron-robey kindly reopen the issue.