How to properly configure eslint-plugin-import in a Next.js 15 (App Router) project using Flat Config and path aliases? #82368
Unanswered
Rich-Warrior
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm trying to get eslint-plugin-import to work properly in a Next.js 15 project that uses the new App Router and Flat Config (eslint.config.mjs).
I’m also using TypeScript with a tsconfig.json that defines path aliases like @/* -> ./src/*.
Despite configuring import/resolver for both node and typescript, ESLint still reports unresolved imports and doesn't respect the alias.I'm trying to get eslint-plugin-import to work properly in a Next.js 15 project that uses the new App Router and Flat Config (eslint.config.mjs).
I’m also using TypeScript with a tsconfig.json that defines path aliases like @/* -> ./src/*.
Despite configuring import/resolver for both node and typescript, ESLint still reports unresolved imports and doesn't respect the alias.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions