Skip to content

Fails to deploy to Cloudflare, no event handlers registered #4

@cgfrost

Description

@cgfrost

Following the instructions in the README results in the following error.

No event handlers were registered. This script does nothing.

Cloudflare accepts two formats for a worker. Service Worker where an event listener for fetch events must be registered or ES modules. This example worker needs to be expanded to include the event listener.

As an aside, the new support for useEsModules() in KotlinJS would be great but it doesn't yet create a module with a default export which Cloudflare requires.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions