We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to use @fastly/js-compute-runtime with Hono, a framework for building Edge applications.
@fastly/js-compute-runtime
When I try to access honoContext.event, I get an exception:
honoContext.event
Log: (new ReferenceError("FetchEvent is not defined", "", 153)) l@:185:130 722/s/</<@:87:52
That's because Hono tries to check
if (this._exCtx instanceof FetchEvent) {
That is, it expects globalThis.FetchEvent to (a) exist and (b) be the constructor for the FetchEvent instance that triggered the request.
globalThis.FetchEvent
FetchEvent
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to use
@fastly/js-compute-runtime
with Hono, a framework for building Edge applications.When I try to access
honoContext.event
, I get an exception:That's because Hono tries to check
That is, it expects
globalThis.FetchEvent
to (a) exist and (b) be the constructor for theFetchEvent
instance that triggered the request.The text was updated successfully, but these errors were encountered: