Skip to content

Commit

Permalink
Add nx daemon known issue + solution (closes #727)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 31, 2024
1 parent 4a5dd3a commit aff3720
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/docs/src/content/docs/reference/known-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ environment variables set.
If it isn't clear what's throwing the exception, try another run with `--debug`
to locate the cause of the issue with more details.

### Path aliases in config files
## Path aliases in config files

Loading the configuration file (e.g. `cypress.config.ts`) for one of Knip's
plugins may give an error:
Expand All @@ -43,6 +43,21 @@ Potential workarounds:
- Use Bun with [knip-bun][5].
- [Disable the plugin][6] (not recommended, try the other options first).

## Nx Daemon

In Nx projects you might encounter this error:

```sh
NX Daemon process terminated and closed the connection
```

The solution is to
[turn off the Nx Daemon](https://nx.dev/concepts/nx-daemon#turning-it-off):

```sh
NX_DAEMON=false knip
```

## False positives with external libs

Knip may report false positives when exports are consumed by external libraries.
Expand Down

0 comments on commit aff3720

Please sign in to comment.