Example Cloudflare ESModule server cannot be published to Cloudflare.
See original GitHub issueDescribe the bug
The example script in Cloudflare-module gives an error when published using wrangler v2.06
The uploaded script has no registered event handlers. [code: 10068]
Your Example Website or App
https://github.com/dotansimha/graphql-yoga/tree/master/examples/cloudflare-modules
Steps to Reproduce the Bug or Issue
Clone your repo, install packages and attempt to publish with wrangler
Expected behavior
I expect the sample application to publish successfully to a Cloudflare worker.
Screenshots or Videos
No response
Platform
- OS: macOS
- NodeJS: 18.1.0
@graphql-yoga/*
version(s): [e.g. 2.6.1]- “wrangler”: “2.0.6”
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
wrangler publish fails when ESModule is used #252 - GitHub
Hello, I got this error when publishing my ESModule project: Cannot read properties of undefined (reading '1') I reproduce the issue with ...
Read more >Configuration · Cloudflare Workers docs
Documentation for Cloudflare Workers, a serverless execution environment that allows you to create entirely new applications or augment ...
Read more >Configuration · Cloudflare Workers docs
Your project will need some configuration before you can publish your Worker. Configuration is done through changes to keys and values stored in ......
Read more >Using Durable Objects · Cloudflare Workers docs
Uploading the Durable Object and Worker to Cloudflare's servers using ... Durable Objects) cannot share a script with Workers written in the ...
Read more >JavaScript modules are now supported on Cloudflare Workers
Today, we support "fetch" for HTTP and WebSocket requests and "scheduled" for cron triggers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ardatan can we make sure all the Cloudflare variant examples are end2end tested in order to prevent future regressions?
Have you published this version using wrangler successfully? I had a similar config yesterday day when I was attempting to get the example working.