Currently in the process of transitioning my Angular application to NX and have successfully created some libraries. I am now looking to execute the nx affected
command, such as nx affected:lint
, but it is throwing an error:
nx run Keira3:lint Oops! Something went wrong! :( ESLint: 8.57.0 No files matching the pattern "./src" were found. Please check for typing mistakes in the pattern. Warning: command "eslint ./src" exited with non-zero status code
The issue lies in the fact that "Keira3" is just the name of the root project in the package.json
; it is not an app or library, yet NX is attempting to run lint on it for some reason.
Upon running
nx show projects --with-target lint
I receive the following output:
acore-world-model
keira-config
keira-e2e
keira
Keira3
This list is accurate except for the last element, Keira3
.
Where does this list come from? How can I add/remove elements from it?