-
Couldn't load subscription status.
- Fork 44
Description
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.