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.

Angular 11 Support

See original GitHub issue

Thank you for sharing xplat, it is awesome, I love the conventions.

I am not sure if it is only me or not. I tried a clean project following xplat’s official guidance and a clean nx project without xplat. Latest Nx support Angular 11 just fine but building fails in the xplat project.

After upgrading to angular 11 in the xplat project, running nx serve xxx was failed with this error: Cannot find module '@angular-devkit/core/src/experimental/workspace'. Downgrade @angular-devkit/core to 10 would remove this error, however the builds were not incremental hence very slow and probably a lot of other problems I didn’t know.

Should I wait for the xplat team add support to angular 11, if so, is there a rough time line available? Or is it only me? Is there a work around solution to fix above?

Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
rexebincommented, Dec 12, 2020

Awesome! Thank you for the hard work! xplat must be near, very excited.

2reactions
NathanWalkercommented, Dec 31, 2020

For those looking to update existing Nx workspaces with xplat v10 to v11, we have published a release that you can run this migration - we have tested this against several large workspaces internally with great results. Please try it and let us know:

    1. Migrate Nx first
nx migrate latest
npm install
nx migrate --run-migrations=migrations.json
    1. Migrate xplat
nx migrate @nstudio/xplat@latest

npm install

IMPORTANT: Don’t forget to run npm install at the end.

Now that the latest versions are installed, kick off the xplat architecture init to add the new xplat lib separations.

You will want to pass just the platforms which you currently use in your workspace. The prefix you use can be the same your workspace is currently configured to use. This can be found in package.json under the xplat key.

nx g @nstudio/xplat:init --prefix=abc --platforms=web,nativescript --framework=angular

With the new architecture in place, you can now kick off the xplat workspace migration:

nx migrate --run-migrations=migrations.json

This will handle a lot of laborious manual update tasks like:

  • Updating your tsconfig path mappings
  • Updating imports throughout all shared and app code to match the new xplat lib barrels
  • Update app configurations to use the latest Nx 11 has to offer
  • Update nx.json and workspace to clean out old retired references and update to new ones
  • Lastly move all your shared code into the new structure

Lastly do a full clean of your workspace to ensure you’re in good updated shape now:

npm run clean

We will publish a blog about this update and instructions soon but would greatly appreciate those looking to migrate existing workspaces and let us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular versioning and releases
The following table provides the status for Angular versions under support. Version, Status, Released, Active ends, LTS ends. ^15.0.0, Active, 2022-11-18 ...
Read more >
Angular - endoflife.date
Release Released Active Support 15 1 month and 1 week ago. (16 Nov 2022) Ends in 4 months and 3 weeks. (18 M... 14 (...
Read more >
Angular 11 New Features
In this update, Angular 11 has finally removed support for IE9/IE10 and IE mobile. IE11 is the only version of IE still supported...
Read more >
Releases · angular/angular - GitHub
fix - f8ecc194e9, Update Location to support base href containing origin (#48327) ... support TypeScript 4.9 (#48005) ... 11 people reacted. 4
Read more >
Angular 11 Features: Breaking Changes and New Deprecations
The angular team in version 11 has dropped the support for TypeScript 3.9 and only supports TypeScript 4.0, only to speed up the...
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