Skip to content

"dependency "./chat.html": no matching module rules" when running with miniflare #27

@chris-wickens

Description

@chris-wickens

I'd like to use miniflare so I can use breakpoints to step through the code, as I believe this isn't supported in wrangler currently. When I run:

npm run miniflare --modules --watch --debug

I get the error:

VMScriptRunnerError [ERR_MODULE_RULE]: Unable to resolve "src/chat.mjs" dependency "./chat.html": no matching module rules. If you're trying to import an npm package, you'll need to bundle your Worker first.

Commenting out lines 62 and 104 in chat.mjs prevents the error but means no web client is available. Does anyone know a workaround for this issue, or a related ticket?

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