-
Notifications
You must be signed in to change notification settings - Fork 362
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
Failed to resolve the module node:* when target ≠ "node" #1036
Comments
This comment was marked as spam.
This comment was marked as spam.
@machao7 You can subscribe to the issue and get notified whenever there's progress. When there is, you'd see it here. Honestly I'd recommend avoiding the browser field spec anyhow, That being said, likely just need to bump |
Similar to #989, but now occurring only when Microbundle's target is not Node.js. I'm compiling a library that runs in both Node.js and a browser, and the library contains dynamic imports for node built-ins like 'fs', executed only in Node.js.
When importing
fs
I can add the following to mypackage.json
and everything works fine:However, using
node:fs
, the same thing does not work, and warnings appear with:Microbundle v0.15.1, Node.js v18.12.1.
The text was updated successfully, but these errors were encountered: