Skip to content
New issue

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

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

Open
chris-wickens opened this issue Nov 26, 2022 · 0 comments

Comments

@chris-wickens
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant