Skip to content

✘ [ERROR] The entry-point file at ".open-next/worker.js" was not found. #605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
unclebay143 opened this issue Apr 25, 2025 · 4 comments
Closed

Comments

@unclebay143
Copy link

unclebay143 commented Apr 25, 2025

I keep getting the following build error after following the New apps guide.

Image

The guide: https://opennext.js.org/cloudflare
Image

@unclebay143 unclebay143 changed the title Outdated documentation --- Apr 25, 2025
@unclebay143 unclebay143 reopened this Apr 25, 2025
@unclebay143 unclebay143 changed the title --- ✘ [ERROR] The entry-point file at ".open-next/worker.js" was not found. Apr 25, 2025
@conico974
Copy link
Collaborator

Did you run npx wrangler deploy ?
You should run the deploy command from package.json, you are not running OpenNext at all here

@unclebay143
Copy link
Author

Did you run npx wrangler deploy ? You should run the deploy command from package.json, you are not running OpenNext at all here

Thanks for the response, this is missing in the documentation

Also, I am trying to use the GitHub deployment, to have each github commit/push have their own deployment build, do I still need to run this command?

@conico974
Copy link
Collaborator

Feel free to create a PR here https://github.com/opennextjs/docs

The command to deploy is npm run deploy (or whatever package manager you use), and that's the one you should use in CI as well

@vicb
Copy link
Contributor

vicb commented Apr 29, 2025

It looks like the issue description has a screenshot from Worker Builds.

A missing .open-next/worker.js indicates that the OpenNext build was not executed.

Take a look at https://opennext.js.org/cloudflare/howtos/dev-deploy and feel free to open an issue on the doc repo (See the GH link top right) if something is not clear.

Thanks

@vicb vicb closed this as completed Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants