-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
import plugin breaking in nx based mono-repo #3014
Comments
You do need those import/resolver settings. |
Still, there is the same issue. In the standalone app, everything is perfect, even --fix is working for import/order but here its breaking. |
What version of eslint and this plugin are you using? It would be most helpful if you could create a minimal repro repo - I realize this is a tough ask. |
I tried adding only Do I need to make extra changes since this is mono-repo? I found these tips https://nx.dev/recipes/tips-n-tricks/eslint on nx, on how to use Also, I remembered, Let me try creating a test app, I'll have to create several dummy files/folders with code to ensure we solve the problem correctly. |
Hi @ljharb I tried creating a demo app for this but encountered a new issue of Unable to re-create the above main issue. I'll try and update soon. I have successfully set the setting of This is a demo app - https://github.com/rishavpandey43/eslint-import-issue-check https://github.com/rishavpandey43/eslint-import-issue-check |
Hey @ljharb I guess I found something. This time inside my It works now. This is the current value of
Earlier I tried to maintain one global But, now when I merged everything in a single internal app-level eslint config, things worked out. Also, I tried creating an Nx-based monorepo but was unable to do. Encountering a lot of version mismatches, and even after that, the dummy project will not have that many files where imports are checked. |
@rishavpandey43 does that mean you're using flat config, in eslint 8? |
I have been encountering a weird issue.
I have a react+typescript based project it was working fine.
Now, I migrated everything to nx-based mono-repo, and I'm getting the following error -
These are imports in App.tsx -
This is my current eslintrc config the internal app-
apps/pay-platform/.eslintrc.js -
As soon as I comment on anything related to the import plugin, Eslint will break.
The same config was working fine in an earlier standalone project, but now it's failing.
This is root level eslint config -
The text was updated successfully, but these errors were encountered: