-
-
Notifications
You must be signed in to change notification settings - Fork 318
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Prerequisites
- I'm using the latest version
- I've read the relevant documentation
- I've searched for existing issues
- I've checked the list of known issues
- I've read the issue reproduction guide
Reproduction url
https://git.sr.ht/~samhh/knip-shadowed-builtin-repro
Reproduction access
- I've made sure the reproduction is publicly accessible
Description of the issue
Hello again 👋
Imports of a monorepo package that shares a name with a Node builtin, such as domain, will falsely be reported as unused.
I appreciate in an ideal world domain would probably be called @org/domain to entirely bypass this kind of issue - notably this shadowing only works at subpaths - however on the basis that all other software in our monorepo is happy with this I think it qualifies as a bug in module resolution in Knip.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working