angular-architects / module-federation-plugin

MIT License
693 stars 189 forks source link

Native federation problem with library builds. #576

Open mino89 opened 2 weeks ago

mino89 commented 2 weeks ago

Hi guys, I've started an experiment with native federation library, regarding all mircrofrontend app everything is working fine, but, when I try to run

ng build services

I get this error

(0 , private_1.purgeStaleBuildCache) is not a function

I've tried to search some info about, but nobody has a similar situation

Here you can find my source code

These are the versions of packages I've used in my project

angular-modular-prj@0.0.0
├── @angular-architects/native-federation@18.0.2
├── @angular-devkit/build-angular@18.0.3
├── @angular/animations@18.0.2
├── @angular/cli@18.0.3
├── @angular/common@18.0.2
├── @angular/compiler-cli@18.0.2
├── @angular/compiler@18.0.2
├── @angular/core@18.0.2
├── @angular/forms@18.0.2
├── @angular/platform-browser-dynamic@18.0.2
├── @angular/platform-browser@18.0.2
├── @angular/router@18.0.2
├── @types/jasmine@5.1.4
├── es-module-shims@1.10.0
├── jasmine-core@5.1.2
├── karma-chrome-launcher@3.2.0
├── karma-coverage@2.2.1
├── karma-jasmine-html-reporter@2.1.0
├── karma-jasmine@5.1.0
├── karma@6.4.3
├── ng-packagr@18.0.0
├── rxjs@7.8.1
├── tslib@2.6.3
├── typescript@5.4.5
└── zone.js@0.14.7
LilianSOLER commented 2 weeks ago

+1

lblacio-craft commented 2 days ago

+1

lblacio-craft commented 2 days ago

Anyone found a solution about this ? I have the same issue since, I also updated Angular version and native federation too

tibztibz commented 2 hours ago

+1

lblacio-craft commented 1 hour ago

I resolved my problem. check hier : https://github.com/angular-architects/module-federation-plugin/issues/590