-
Notifications
You must be signed in to change notification settings - Fork 325
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
Plugin not found in Rush monorepo #1040
Comments
The reason for this is that some tooling (I don't know which one) patches the ESLint script (./apps/my-app/node_modules/.bin/eslint) that runs eslint and adds this to it export NODE_PATH="/home/codespace/workspace/rush-example/common/temp/node_modules/.pnpm/registry.npmjs.org/eslint/6.8.0/node_modules/eslint/bin/eslint.js/node_modules:/home/codespace/workspace/rush-example/common/temp/node_modules/.pnpm/registry.npmjs.org/eslint/6.8.0/node_modules/eslint/bin/node_modules:/home/codespace/workspace/rush-example/common/temp/node_modules/.pnpm/registry.npmjs.org/eslint/6.8.0/node_modules/eslint/node_modules:/home/codespace/workspace/rush-example/common/temp/node_modules/.pnpm/registry.npmjs.org/eslint/6.8.0/node_modules:/home/codespace/workspace/rush-example/common/temp/node_modules/.pnpm/registry.npmjs.org/eslint/node_modules:/home/codespace/workspace/rush-example/common/temp/node_modules/.pnpm/registry.npmjs.org/node_modules:/home/codespace/workspace/rush-example/common/temp/node_modules/.pnpm/node_modules:/home/codespace/workspace/rush-example/common/temp/node_modules:/home/codespace/workspace/rush-example/common/node_modules:/home/codespace/workspace/rush-example/node_modules:/home/codespace/workspace/node_modules:/home/codespace/node_modules:/home/node_modules:/node_modules:/home/codespace/workspace/rush-example/apps/my-app/node_modules/eslint/bin/eslint.js/node_modules:/home/codespace/workspace/rush-example/apps/my-app/node_modules/eslint/bin/node_modules:/home/codespace/workspace/rush-example/apps/my-app/node_modules/eslint/node_modules:/home/codespace/workspace/rush-example/apps/my-app/node_modules:/home/codespace/workspace/rush-example/apps/node_modules" The ESLint extension doesn't use the script since it loads ESLint directly. But the extension offers a setting to tweak the NODE_PATH as well. It is |
Let me know if you hear back something from the rush people. |
Thanks for looking into this. I didn't know it patched eslint (that's weird and ugly). Now I took a better look at Rush issues and documentation and found this:
Their alternative recommendation is to add |
Good to hear you got it working. |
Here's a repo that reproduces the problem:
https://github.com/pauliunas/rush-example
When I change a file, triggering
vscode-eslint
, it fails to load any eslint plugins. Here's what I see in the output window:Going to
D:\test_projects\rush-example\apps\my-app
and runningnpm run lint
works just fine.I've tried following advice from other similar issues, Stack Overflow etc., and I just don't see what I'm still missing. Am I doing something wrong, or have I run into a bug?
The text was updated successfully, but these errors were encountered: