Avatar ·

ESLint Error "Unable to resolve path to module" when importing TypeScript files

Hello, colleagues! I've just started learning TypeScript and am trying to configure ESLint in my project, but I've encountered a very strange error. I have a simple project structure: ``` src/ utils/ helpers.ts components/ Button.tsx index.ts ``` In the `index.ts` file, I'm trying to import a module: ```typescript import { formatDate } from './utils/helpers'; ``` ESLint throws an error: `Unable to resolve path to module './utils/helpers'`. However, TypeScript itself sees this file perfectly and the code compiles without errors! My ESLint config (`.eslintrc.json`): ```json { "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended" ] } ``` I've already tried: