-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Pages directory cannot be found at /monorepo/pages or /monorepo/src/pages. If using a custom path, please configure with the no-html-link-for-pages rule in your eslint config file #685
Comments
@oste thanks for reporting. Couldn't reproduce on this repo... Are you using the Cause as far as I understand it, you shouldn't have this problem Let me know, cause if it's affecting you, maybe I can add the rootDir.next in the example. |
yes I have eslint.base.js:
eslintrc.js
|
I see, its maybe linked to vscode-eslint plugin config... cause as I see it, it does not complain on the command line I'll keep this open for more investigation, but thanks for letting me know |
@oste I have an intuition 😄 Is the config you suggest https://github.com/belgattitude/nextjs-monorepo-example#61-vscode actually works with wildcards ?
What would it give if you give an explicit list ? "eslint.workingDirectories": [
"./packages/package-1",
"./packages/package-2",
"./apps/yyy",
"./apps/yyy"
], When you mentioned the problem and showed me the link to vscode-lint + look like a "current working" directory that isn't right. My guts start to tell, looks so related to each others I'm asking cause I want to isolate problems into categories, those linked to editors and those linked to eslint config. Generally I proceed like this:
|
It seems there can be some conflicts between eslint rules and mono repo file structure. I was seeing above error using
@next/next/no-html-link-for-pages
. I added to my app and it works now.More info can be found here: vercel/next.js#26330
Thanks for the awesome how-tos and examples.
The text was updated successfully, but these errors were encountered: