Closed TobbiAR closed 1 year ago
Run & review this pull request in StackBlitz Codeflow.
@NetanelBasal @EricPoul I'm facing eslint errors inside the build pipeline, but I cannot reproduce those locally. Can you help me with this?
The error im facing is: NX Failed to load plugin '@angular-eslint' declared in 'libs/effects-ng/.eslintrc.json#overrides[0] » plugin:@nrwl/nx/angular': Unexpected token '??='
Could you describe how did you update nx and angular?
Sure,
Step 1: I've ran nx migrate latest
, but faced the problem, that nx didn't manged to update all angular dependencies automatically, so I've used nx migrate latest --from=nx@15.9.2
.
Step 2: To resolve npm install
errors occurred by a unresolvable peer dependency caused by @angular-devkit/build-angular
, I've manually updated jest
and jest-environment-jsdom
to v29.5.0
to be able to run npm i without errors.
Step 3: To run (eventually) necessary migrations I've also ran nx migrate --run-migrations --create-commits
, but nx said, that no migrations are necessary.
I face an error about unresolvable peer dependency
every time. I just use --legacy-peer-deps
. I tried it and 3rd step passed properly.
@EricPoul Ok, I've discovered the root cause of the problem: The pipeline used an outdated nodejs version (v14), which is now unsupported by angular and eslint. The PR should be now ready for review. 🙂
Updated nx and angular dependencies via nx migrate
58
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information