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.

Migrating to 14.5.1 failing due to `@angular/cli`

See original GitHub issue

Current Behavior

When migrating a project from nx 14.1.4 to 14.5.1, I’m getting the following error

 ERROR  Failed to run update-tsconfig-target from @angular/cli. This workspace is NOT up to date!

 >  NX   Path "/tsconfig.json" does not exist.

To workaround the issue I had to remove @angular/cli altogether from the repo. I’m assuming it might be ok as long as we only use the nx cli and stop using the ng cli, but it does seem a bit hacky. Although I can’t remember if Nx added the @angular/cli dependency itself in the first place or if we added it ourselves, so maybe it’s fine not having it around anymore.

Expected Behavior

Migration should complete without error.

Steps to Reproduce

I wish I knew for sure, I don’t have any custom stuff in the repo so I wanna believe any migration from 14.1.4 to 14.5.1, for a repo carrying at least one angular project (from 13.3 to 14.1), would prompt the error.

Failure Logs

This is the migration block causing the issue:

    {
      "version": "14.0.0",
      "factory": "./update-14/update-tsconfig-target",
      "description": "Update TypeScript compilation target to 'ES2020'.",
      "package": "@angular/cli",
      "name": "update-tsconfig-target"
    },

Environment

   Node : 16.15.0
   OS   : darwin arm64
   yarn : 1.22.18
   
   nx : 14.1.4
   @nrwl/angular : 14.1.4
   @nrwl/cypress : 14.1.4
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.1.4
   @nrwl/eslint-plugin-nx : 14.1.4
   @nrwl/express : Not Found
   @nrwl/jest : 14.1.4
   @nrwl/js : 14.1.4
   @nrwl/linter : 14.1.4
   @nrwl/nest : 14.1.4
   @nrwl/next : Not Found
   @nrwl/node : 14.1.4
   @nrwl/nx-cloud : 14.0.3
   @nrwl/nx-plugin : Not Found
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.1.4
   @nrwl/web : Not Found
   @nrwl/workspace : 14.1.4
   typescript : 4.6.3
   rxjs : 7.5.5
   ---------------------------------------
   Community plugins:
         @auth0/auth0-angular: 1.9.0
         ng2-charts: 3.0.9
         @sharethrough/nx-deploy: 2.3.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
tobiashoeftcommented, Oct 16, 2022

I have still this issue 😦 => run migration against nrwl/workspace 15 coming from 13

3reactions
Azbesciakcommented, Nov 14, 2022

Same as @tobiashoeft


 >  NX   Failed to run update-tsconfig-target from @nrwl/angular. This workspace is NOT up to date!
 >  NX   Cannot find configuration for 'npm:@angular/animations' in /angular.json.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Update Angular to v14
A migration will convert existing usages to new Untyped -prefixed aliases which preserve the existing behavior. The deprecated aotSummaries field in the ...
Read more >
Getting error after Angular cli update - Stack Overflow
I am getting this error ng help /usr/local/lib/node_modules/@angular/cli/models/config/config.js:15 constructor(_configPath, schema, configJson, ...
Read more >
the installed angular cli version is older than the latest stable ...
To me this sounds like the CLI wants to install version 12.x temporarily and fails to do so due to node version requirements....
Read more >
Automate Updating Dependencies - Nx
Remove the migrations.json file. Step 1: Updating dependencies and generating migrations. First, run the migrate command:.
Read more >
@nrwl/next: Versions | Openbase
angular: host tests were failing due to no navigation (#11825) (458e89b) ... angular: update angular cli package in a migration generator to prevent ......
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