question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on a fresh Angular install (14.1.3), can't lint

See original GitHub issue

Reproduction Repository: https://github.com/bitovi/angular-ngrx-chat/tree/steps On a fresh angular install, running ng lint to install angular-eslint and then running again to run the linting step, gives the error below:

(node:10974) UnhandledPromiseRejectionWarning: TypeError: iterator.next is not a function
    at recurse (/path/node_modules/@nrwl/devkit/src/utils/convert-nx-executor.js:54:26)
    at /path/node_modules/@nrwl/devkit/src/utils/convert-nx-executor.js:71:17**
(Use `node --trace-warnings ...` to show where the warning was created)
(node:10974) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10974) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Versions

package version
@angular-eslint/builder 14.0.2
ESLint 8.18.0
node 14.17.6
# Please run `npx ng version` in your project and paste the full output here:
Angular CLI: 14.1.3
Node: 14.17.6
Package Manager: npm 6.14.15 
OS: darwin x64

Angular: 14.1.3
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1401.3
@angular-devkit/build-angular   14.1.3
@angular-devkit/core            14.1.3
@angular-devkit/schematics      14.1.3
@schematics/angular             14.1.3
rxjs                            7.5.6
typescript                      4.7.4

  • I have updated to the latest supported version of the packages and checked my ng version output per the instructions given here.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesHenrycommented, Aug 23, 2022

I’ve published 14.0.3 of the @angular-eslint packages and there are no longer any issues with fresh installs on Angular 14.1.3

1reaction
JamesHenrycommented, Aug 22, 2022

The fix has been merged into Nx, just waiting on the patch to be released. I believe pinning to Angular 14.1.2 is the workaround until then

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when up I update from 13 to 14 · Issue #23274 · angular ...
I currently have Angular CLI 13.1.3 Node 14.15.1 Package Manager 8.12.1 ... get the following: The installed Angular CLI version is outdated.
Read more >
ng lint no longer working after updating to angular 14 from ...
I found the solution. I did the next steps: Update eslint-plugin-jest manually to 26.8.7; Update eslint-plugin-import manually to 2.26.0 ...
Read more >
Update Angular to v15
This topic provides information about updating your Angular applications to Angular version 15. For a summary of this information and the step-by-step ...
Read more >
Fixing Could not find module @angular-devkit/build-angular ...
To fix Could not find module angular-devkit-build-angular error in Angular follow the below steps 1. Delete node_modules folder and run npm ...
Read more >
angular-eslint - Bountysource
Error on a fresh Angular install (14.1.3), can't lint $ 0 ... Created 4 months ago in angular-eslint/angular-eslint with 2 comments. ... On...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found