Open coderaiser opened 2 years ago
There is the same problem with the import/no-unresolved rule (https://github.com/import-js/eslint-plugin-import/issues/2132 / https://github.com/import-js/eslint-plugin-import/issues/1810):
/home/regseb/testcase/index.js
1:19 error Unable to resolve path to module 'chalk' import/no-unresolved
1:19 error "chalk" is not found node/no-missing-import
This is related to this issue in resolve.
It seems got also has this issue.
At least for me. 🤔
For now I will just ignore linting that import. (See below.) No biggie, for now. 😌
Part of my .eslintrc.json
:
{
"rules": {
"import/no-unresolved": ["error", { "ignore": ["got"] }],
"node/no-missing-import": ["error", { "allowModules": ["got"] }]
}
}
Note that node/no-missing-import
also seems to be affected ... 🤔
eslint-plugin-n
is the maintained version of this module.
We switched to it in eg. eslint-config-standard
/ standard
and it is maintained by me and other members of the official ESLint community organization.
Try that module out and if it isn't fixed there, then open a new issue in that project.
Looks like the thing is
chalk v5
usesexport
instead ofmain
.