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.

Nx migrate banner completely hides information on available updates

See original GitHub issue

Current Behavior

Running ng update in nx workspace no longer provides table with outdated packages, but instead display a banner: Nx provides a much improved version of "ng update"..

Expected Behavior

For me, that one feels like regression, as I am no longer capable of using that for getting informed on outdated parts of my workspace.

Steps to Reproduce

Just run ng update in workspace to get that obvious banner.

Environment

Node : 12.16.1 OS : darwin x64 yarn : 1.22.4

nx : Not Found @nrwl/angular : 11.0.0 @nrwl/cli : 11.0.0 @nrwl/cypress : 11.0.0 @nrwl/devkit : 11.0.0 @nrwl/eslint-plugin-nx : Not Found @nrwl/express : Not Found @nrwl/jest : 11.0.0 @nrwl/linter : 11.0.0 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/react : Not Found @nrwl/schematics : Not Found @nrwl/tao : 11.0.0 @nrwl/web : Not Found @nrwl/workspace : 11.0.0 typescript : 4.0.5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

17reactions
instantgiscommented, Feb 25, 2021

Angular Evergreen in Visual Studio tells me Angular is outdated. npx create-nx-workspace installed Angular 11.2.0 and 11.2.2 is current. I want to update it so I try ng update and I get… Nx provides a much improved version of “ng update”. It runs the same migrations, but allows you to:

  • rerun the same migration multiple times
  • reorder migrations, skip migrations
  • fix migrations that “almost work”
  • change versions of packages to match organizational requirements And, in general, it is lot more reliable for non-trivial workspaces. Read more at: https://nx.dev/latest/angular/workspace/update Run “nx migrate latest” to update to the latest version of Nx. Running “ng update” can still be useful in some dev workflows, so we aren’t planning to remove it. If you need to use it, run “FORCE_NG_UPDATE=true ng update”. PS D:\Projects\nx\youdoit> nx migrate latest Fetching meta data about packages. It may take a few minutes. Fetching @nrwl/workspace@latest Fetching @nrwl/workspace@11.3.2

NX The migrate command has run successfully.

  • package.json has been updated
  • there are no migrations to run, so migrations.json has not been created.

NX Next steps:

ok fair enough so I gather there was nothing to update with the nx pieces and package.json did not change but what about Angular. I still want to update Angular. I copy paste the indicated FORCE_NG_UPDATE=true ng update and I get FORCE_NG_UPDATE=true : The term ‘FORCE_NG_UPDATE=true’ is not recognized as the name of a cmdlet So now I am off on a tangent researching what am I doing wrong and what’s this passing environment variable passing thing you mention above. And I try npm FORCE_NG_UPDATE=true ng update and of course that barks at me

Can you please be clear and explicit about how to override nx migrate and update Angular pieces?

Thanks

0reactions
camillewallcommented, Oct 29, 2021

I got ng update to work on windows. The message of ‘If you need to use it, run “FORCE_NG_UPDATE=true ng update”.’ is close. But for me to get it to work I had to first set an environment variable set FORCE_NG_UPDATE=true Then ng update worked like a charm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes - Waves Audio
Find information about the latest updates, features and improvements included in new versions of plugins; applications; and firmware for SoundGrid servers ...
Read more >
Easy Checks – A First Review of Web Accessibility - W3C
If there is, check that there is a way for the user to pause, stop, or hide the updated information, or for the...
Read more >
How to stop ribbon toolbar from auto hiding? - Foxit Software
The following describes how to stop ribbon toolbar from auto hiding in different versions of Foxit PDF Editor (formerly known as Foxit...
Read more >
[Update Nov 1] v.236 - Midnight Carnival Patch Notes
The NX and Maple Points balances will now be displayed on the top bar. The Reward Point and Meso balances can still be...
Read more >
Cisco Nexus 9000 Series NX-OS Security Configuration ...
This chapter describes how to configure authentication, authorization, and accounting (AAA) on Cisco NX-OS devices.
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