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

Unable to resolve "index.js" dependency "node:buffer": no matching module rules. #547

Closed
Skye-31 opened this issue Mar 23, 2023 · 0 comments · Fixed by #548
Closed

Unable to resolve "index.js" dependency "node:buffer": no matching module rules. #547

Skye-31 opened this issue Mar 23, 2023 · 0 comments · Fixed by #548

Comments

@Skye-31
Copy link
Contributor

Skye-31 commented Mar 23, 2023

It looks like miniflare requires an additional experimental compat flag on top of nodejs_compat to enable these dependencies

if (experimental) {
// TODO(soon): remove experimental designations when removed in `workerd`
modules["node:assert"] = assert;
modules["node:buffer"] = buffer;
modules["node:util"] = util;
}

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

Successfully merging a pull request may close this issue.

1 participant