-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Open
Labels
LintingRelated to `next lint` or ESLint with Next.js.Related to `next lint` or ESLint with Next.js.
Milestone
Description
What version of Next.js are you using?
11.0.0
What version of Node.js are you using?
v14.15.5
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next export
Describe the Bug
when I run next build
, it asked to install eslint-config-next
. So I did to try the new feature.
after that I got numerous errors, seems like one for every page that look like this:
./src/pages/mypage.tsx
Error: Parsing error: Cannot read file '/full/path/to/git/clone/client/client/tsconfig.json'.
Yes, notice the client/client
, that looks like the bug.
my git project structure is this:
root
package.json
client <--- where next build is run!!!
package.json
tsconfig.json
src
pages
mypage.tsx
Expected Behavior
These errors should not happen. I also have my own eslint set up in the root of the repo, but I want to see what this feature offers before disabling it.
To Reproduce
Try to setup a project like what I've described, and run next build
from the client
directory.
thisismydesign and wwalser
Metadata
Metadata
Assignees
Labels
LintingRelated to `next lint` or ESLint with Next.js.Related to `next lint` or ESLint with Next.js.