question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example Cloudflare ESModule server cannot be published to Cloudflare.

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
n1ru4lcommented, Jun 8, 2022

@ardatan can we make sure all the Cloudflare variant examples are end2end tested in order to prevent future regressions?

1reaction
sirganyacommented, May 25, 2022

Have you published this version using wrangler successfully? I had a similar config yesterday day when I was attempting to get the example working.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found