-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Knip doesn't work with a fresh NX(19.4.2) Angular(18) Monorepo #727
Comments
So not sure what's tripping up the Nx daemon here. Knip does not use or interfere with it. When you do |
Hello, I've encountered the same issue with my nx repo (v18), i've upgraded to v19 to check if it would solve the issue : it didn't. I've dug a bit more and ran [ 'nx' ]
[.] Glob options
{
patterns: [ 'jest.config.{js,ts,mjs,cjs,json}', 'package.json' ],
cwd: '/home/MyUser/work/MyProject',
dir: '/home/MyUser/work/MyProject',
gitignore: false,
absolute: true
}
[.] Jest config file paths (1)
[ '/home/MyUser/work/MyProject/jest.config.ts' ]
NX Daemon process terminated and closed the connection
So i've tried to delete the import { getJestProjectsAsync } from '@nx/jest';
export default async () => ({
projects: await getJestProjectsAsync(),
}); What I tried next was to prevent Knip from scanning this file using negated pattern, but with no success. In any case the workaround for now is to use |
You can try to disable the Jest plugin by setting |
This work but it's still a work around. |
Any interesting output perhaps when using |
Reproduction url
https://nx.dev/getting-started/tutorials/angular-monorepo-tutorial
Description of the issue
So, I was trying to build up a config slowly to match my NX monorepo structure. I wanted to do this by making a plain new NX project and adding knip to it. However, it fails.
So starting from https://nx.dev/getting-started/tutorials/angular-monorepo-tutorial
I get a plain repo with some basic config (Angular, Jest, Cypress, Webpack, ...)
This gives me a project with the following versions
Then run the basic commands of
npm init @knip/config
&npm run knip
and run into the following issue.Here is the daemon.log
At which point I'm lost, not sure why the connection is being closed prematurely or something? Maybe somebody with more NX experience can shed some light on it.
The text was updated successfully, but these errors were encountered: