We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Node version: 20.14.0 npm version: 10.7.0 ESLint version: 8.57.0 eslint-plugin-n version: >=17.5.0
n/no-missing-import
dotcore64/chai-ip#242
When package.json contains:
"imports": { "#is-ip": { "node": "net", "browser": "is-ip" } },
and I import { isIP } from "#is-ip", the rule should pass
import { isIP } from "#is-ip"
This regression started in 17.5.0, so probably by this PR
17.5.0
The text was updated successfully, but these errors were encountered:
Thank you for the report, I will look later today!
Sorry, something went wrong.
This looks to be related to these: webpack/enhanced-resolve#303 webpack/enhanced-resolve#310
I think the simplest solution would be a plugin that resolves the node modules to stubs, but it's a tough one.
Hm... Just curious, those are really old issues, but this regression is very recent? As for resolving, would this be useful? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta/resolve
I would love to use import.meta.resolve, but we support node ^18.18.0, in fact, as soon as we can use it, we will use it!
import.meta.resolve
might be worth it to fallback to the polyfill in the meantime? https://github.com/wooorm/import-meta-resolve
imports
scagood
Successfully merging a pull request may close this issue.
Environment
Node version: 20.14.0
npm version: 10.7.0
ESLint version: 8.57.0
eslint-plugin-n version: >=17.5.0
What rule do you want to report?
n/no-missing-import
Link to Minimal Reproducible Example
dotcore64/chai-ip#242
What did you expect to happen?
When package.json contains:
and I
import { isIP } from "#is-ip"
, the rule should passParticipation
Additional comments
This regression started in
17.5.0
, so probably by this PRThe text was updated successfully, but these errors were encountered: