Adding BrowserAnimationsModule to microfrontend application causes content duplication.

This issue has been created since 2022-09-21.

Which @angular/* package(s) are the source of the bug?

platform-browser

Is this a regression?

No

Description

When adding BrowserAnimationsModule to an application running within microfrontend architecture (created with module federation) the content of application initially gets duplicated instead of redirecting to a different url. Similar things happens to components like a datepicker - after changing between a couple of months, the days don't get removed and end up being piled up on top of each another ( picture enclosed below).

image

When removing the BrowserAnimationsModule these errors don't appear. When running as a standalone project - without the shell/host application these errors also don't appear.
The issue was previously reported here: #38968 but was closed as the issue was allegedly resolved in version13, however I have tested it both for version 13 and 14 without success.

I have tried adding angular animations as an eager singleton to webpack.config of shell and microfrontend application like so : "@angular/platform-browser/animations": { singleton: true, strictVersion: false, requiredVersion: 'auto', eager: true }, which was proposed here: https://stackoverflow.com/questions/67386392/angular-module-federation-browsermodule.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 14.2.3
Node: 16.15.1
Package Manager: npm 8.11.0
OS: win32 x64

Angular: 14.2.2
... animations, cdk, common, compiler, compiler-cli, core, forms
... localize, material, platform-browser
... platform-browser-dynamic, platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1402.3
@angular-devkit/build-angular   14.2.3
@angular-devkit/core            14.2.3
@angular-devkit/schematics      14.2.3
@angular/cli                    14.2.3
@schematics/angular             14.2.3
ng-packagr                      14.2.1
rxjs                            6.6.7
typescript                      4.8.3
webpack                         5.74.0

Anything else?

No response

JoostK wrote this answer on 2022-09-21

Module Federation is not something that Angular provides out-of-the-box, so I'm afraid this is more of a support request than a bug report, and therefore more suitable for StackOverflow.

If you have additional pointers that this is a bug in Angular, please open a new issue with a minimal reproduction, as without a repro we won't be able to investigate.

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-10-04
Star Count 84139
Watcher Count 3064
Fork Count 22243
Issue Count 1206

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Return dates as DateTime instead of string 1 2021-08-10 2022-08-16
LoadError: On worker 7 2022-06-20 2022-08-29
Implement actionnable rules 0 2021-04-28 2022-08-27
java.lang.NullPointerException on Samsung Devices Running Android 11 0 2021-09-16 2022-07-19
Dependency Dashboard 0 2021-10-18 2022-09-15
Bitbucket incorrectly reports repository name without owner name as slug 1 2021-01-29 2022-08-11
Add the possibility to set testID to create unit tests 0 2021-10-19 2022-09-09
Launch feature details for onChordClick in CircularView 0 2021-11-09 2022-09-30
chipOnDelete don't update 2 2020-12-11 2022-09-22
👑[Enhancement] 想询问一下dalao有没有把reddit加入反代套餐的计划 0 2022-01-16 2022-09-30
Documentation link seems to be broken. 0 2021-06-01 2022-09-07
GeoJSON point geometry -> SVG circles doesnt write r attribute 2 2022-08-17 2022-09-21
Allow to silently ignore symlinks 18 2021-10-04 2022-08-14
cordova -> face-api-js [Error] Failed to load resource: The requested URL was not found on this server. (null, line 0) 0 2021-02-24 2022-09-11
Disable Push Notification When No Freebies Are Found 4 2021-12-13 2022-09-24
Failed to claim(Error: Sorry, you don't have a prerequisite to purchase this pack.) 3 2021-12-23 2022-09-24
GitHub: Add fuzzy repository search 0 2022-04-14 2022-09-02
[FEATURE] Backend: Channels need to be uniquely referred to internally and stored 0 2021-08-19 2022-10-03
default object generic types 5 2022-07-25 2022-09-15
path functionality for heterogeneous systems 0 2022-05-30 2022-09-15
Updates available message shows up even when I'm on latest version of postman 2 2022-07-29 2022-10-04
[Enhancement] Option to filter when following links 0 2021-10-07 2022-09-16
Define an inspiring look&feel 0 2018-09-28 2022-07-17
cloned site doen't work 5 2021-11-03 2022-08-07
Samples with upper file name case in extension aren't shown in the load window 0 2022-01-23 2022-09-19
Missing `f` prefix on f-strings 1 2022-04-23 2022-09-12
How to integrate Spring-Boot-Actuator endpoints and GRPC together? 9 2016-03-09 2022-09-16
Unable to communicate with OSTree 0 2022-07-28 2022-09-12
Fix code scanning alert - CVE-2022-29155 0 2022-05-23 2022-09-16
[Domain Proxy] Add documentation/Readme 0 2022-02-03 2022-08-12
control empty role of boundaries 1 2022-05-23 2022-09-12
Anonymous DNS relays not working for some of our servers 13 2021-02-27 2022-09-10
Docker apache and nginx reverse proxy not working well on playing media 0 2021-10-11 2022-08-24
Detect too high lightmap texel density and warn before baking lightmaps 5 2022-04-07 2022-10-02
Copy property path does not work with project configuration options. 1 2022-03-11 2022-09-25
add retry mechanism for e2e test workflows 5 2022-02-13 2022-09-12
Visual Studio crashing while using WinForms component 4 2022-06-26 2022-09-24
Paillier并没有被调用在纵向Secureboost中. 7 2022-07-05 2022-10-03
HomeKit: ffmpeg process leak 2 2021-11-23 2022-09-30
Rebuild config.json, if not present 2 2022-06-13 2022-09-23
Is there an "fill(previous)" option in Prometheus like in Flux? 1 2022-07-01 2022-09-07
Autocompletion doesn't work well within lambda expressions 4 2022-02-17 2022-09-29
How to use credentials helper inside EKS cluster? 0 2021-06-23 2022-09-24
Bump ini from 1.3.5 to 1.3.8 in /Server 0 2020-12-12 2021-10-18
Vs code not opening 4 2021-11-04 2022-09-12
Mismatch of document and code repo 1 2022-01-05 2022-08-17
node onMouseDown does not provide event 0 2020-10-15 2022-09-21
Duplicated receive messages 4 2022-02-04 2022-09-26
List missing padding in rtl 1 2022-01-18 2022-09-18