Is NX package-based monorepo do not work with Angular?

97 views Asked by At

My goal is to create module federation example with package-based monorepo angular. Package-based monorepo because I am expecting this scenario:

  1. /checkout with Angular 15.
  2. /product with Angular 16.

I am following this tutorial https://nx.dev/recipes/angular/module-federation-with-ssr but with package-based monorepo

The problem: I can't go to path /checkout or /product.

enter image description here

What I've tried:

  1. use integrated monorepo. /checkout and /product works.
  2. use package-based monorepo with react. /checkout and /product works.
1

There are 1 answers

1
Matthieu Riegler On

NG0203 is caused by having multiple copies of @angular/core.

All apps should rely on the same core package.