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
[ERROR] error running ng lint --fix #1132
Comments
Downgrading "@angular-eslint/builder" to version 14.0.0 solves the issue |
#1122 (comment) this may help |
Same Issue for Angular 14.2.2
Was working with Angular Now im not able to run @luca-sharryland temporal fix is working
Additional info:
|
Thank you for that follow up @elcreator that, plus @Sebastian-G's post, was the key to me being able to reproduce this and then figure it out. It happens because the Nx daemon eagerly starts after install to help analyze workspaces super fast. However, in this case, I only needed to include the nx core package because of my desire to make my life easier (as a single maintainer) to share the bulk of the implementation of the This was hugely beneficial earlier on when the implementation was frequently changing, but now that things have stabilised, it's a net win if I remove nx core from the equation and you will no longer see errors like this. I have done that in #1142 This is obviously not a primary use case for Nx core, which is why there are rough edges. To be clear, there are no issues with using angular-eslint with Nx, it's just that I was using nx inside of angular-eslint at runtime to make my life easier |
Description and reproduction of the issue
$ ng lint --fix
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#".] {
code: 'ERR_UNHANDLED_REJECTION'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Versions
@angular-eslint/builder
14.0.4
ESLint
8.23.0
node
16.13.2
ng version
output per the instructions given here.The text was updated successfully, but these errors were encountered: