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

Workers: Error when an undefined value is exported in dev environment #764

Open
transbitch opened this issue May 7, 2024 · 0 comments
Open

Comments

@transbitch
Copy link

If you export a variable that is undefined from your entry script, Miniflare produces:

MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.

✘ [ERROR] service core:user:myproject: Uncaught TypeError: Cannot initialize a dictionary with required members from an undefined or null value.

Note that there is no error thrown when actually deploying and using in production, or when testing with --remote.

NB. In my case, the fact the script was exporting an undefined value was a byproduct of my build process (with vite)

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

No branches or pull requests

1 participant