-
Notifications
You must be signed in to change notification settings - Fork 27k
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
eslint next 11 Parsing error: Cannot read file #26287
Comments
Tried to quickly reproduce and couldn't unfortunately 😞. Is |
installed in |
|
Thanks for the clarification @jimisaacs. Unfortunately I can't seem to reproduce this issue, but could you try adding the following to your
It sounds like ESLint is running for you on a separate directory than where |
@housseindjirdeh I have the same issue in a fully reproduced use case (glad to CI) : thisismydesign/nestjs-starter#23
|
I fixed this with the
After this, I'm using it here: https://github.com/thisismydesign/nestjs-starter > thisismydesign/nestjs-starter#83 |
2024 and still solved the issue 👍 |
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 installeslint-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:
Yes, notice the
client/client
, that looks like the bug.my git project structure is this:
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 theclient
directory.The text was updated successfully, but these errors were encountered: