-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
import-x/no-unresolved errors after updating eslint-import-resolver-typescript
from 3.7.0 to 3.8.3
#364
Comments
I also experienced this with the default Vite template which has multiple tsconfig configs using references. I fixed it by manually specifying the project files using a glob in import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
export default tseslint.config(
{
settings: {
'import-x/resolver-next': [
createTypeScriptImportResolver({
alwaysTryTypes: true,
project: `./tsconfig.*.json`,
// project: [`./tsconfig.node.json`, `./tsconfig.app.json`], // also works
}),
], |
@befabry Your repository has the following issues:
Explanation Hint If you have additional doubts or questions, please do not hesitate to ask 🫡 |
@JounQin We can close this 👍 |
Hi,
As suggested in this comment, I'm opening a ticket to report an issue I encountered after updating
eslint-import-resolver-typescript
from version 3.7.0 to 3.8.3.Context
I have two repositories:
tsconfig.json
.tsconfig
files (tsconfig.json
,tsconfig.app.json
,tsconfig.node.json
).The backend repository works fine, but the frontend repository started showing
import-x/no-unresolved
errors after the update.Configuration
Backend ESLint Configuration:
Frontend ESLint Configuration:
Issue
After updating from version 3.7.0 to 3.8.2 (and later to 3.8.3), my IDE stopped resolving aliased paths in the frontend repository. The
import-x/no-unresolved
errors started appearing.Steps to Reproduce
README.md
to install the project (up to step 4).import-x/no-unresolved
errors.Expected Behavior
The
import-x/no-unresolved
errors should not appear after updating to version 3.8.3, just as they don't appear in version 3.7.0.Additional Information
tsconfig
files in the frontend repository.tsconfig.json
, does not exhibit this issue.Thank you for looking into this!
The text was updated successfully, but these errors were encountered: