-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Can't resolve node builtin modules in esm build dependency #15574
Comments
Duplicate #14166 |
Please use #14166 (comment) |
@alexander-akait @vankop In other mjs files, it works // test.mjs
import path from 'node:path'
console.log(path.dirname('/foo/bar/baz/asdf/quux')) |
your config should be
where X is used module ( |
I have committed to the node-prefix branch(repo) |
ok, I understand what you are doing.. please use settings with |
Yes, that's the weird part. the (Please see the first picture of this issue) |
I found a problem.. For now I can suggest to use commonjs config format.. |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
solved in #15611 |
Bug report
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
works fine, no warnings
What is the expected behavior?
Other relevant information:
webpack version: 5.70.0
Node.js version: v14.19.0
Operating System: macOS 12.3
Additional tools:
demo
repo https://github.com/keenwon/webpack-test, switch to node-prefix branch
node:
doesn't work eitherThe text was updated successfully, but these errors were encountered: