Skip to content
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

Worker was unable to load entry point #630

Closed
ejizba opened this issue Sep 28, 2022 · 2 comments · Fixed by #631
Closed

Worker was unable to load entry point #630

ejizba opened this issue Sep 28, 2022 · 2 comments · Fixed by #631

Comments

@ejizba
Copy link
Contributor

ejizba commented Sep 28, 2022

With the rollout of host version 4.12 users can see this error:

Worker was unable to load entry point "index.js": Found zero files matching the supplied pattern

NOTE: The filename in the message may be different, but "index.js" is by far the most common.

Mitigation

Update: The change was rolled back in host v4.12.2.19454. No further mitigation should be necessary.

Background

We introduced a new feature in #537 that lets users run app-level entrypoint code. By default we would load the file specified in a user's package.json "main" field and throw an error if we have any issues loading the file specified. Unfortunately, many existing users appear to have "main" set to "index.js" but that file does not exist in their app. When we started rolling out this feature, that means their app would fail to start.

@bradoyler
Copy link

I am seeing this error with Functions Runtime 4.31.0.22173 when we upgrade from Node v16 to Node v20.

@ejizba
Copy link
Contributor Author

ejizba commented Apr 4, 2024

Hi @bradoyler this was a by-design breaking change for Node v20. You have to fix the error for your app to run (and it should be relatively easy to fix). See #697 for more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants