MutationObserver stops working when used in a project where @angular/upgrade is used

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

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

upgrade, zone.js

Is this a regression?

No

Description

We are currently upgrading a project from angularjs to angular 14 and noticed that our callbacks from a MutationObserver are never where called.

If I create a new angular 14 project the callbacks work as intended, but as soon as I added @angular/upgrade they stopped working.

Please provide a link to a minimal reproduction of the bug

https://github.com/AnderssonPeter/angular-upgrade-mutationobserver

Please provide the exception or error you saw

The callback defined in src\app\app.component.ts:27 is never called

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

Angular CLI: 14.1.3
Node: 18.1.0 (Unsupported)
Package Manager: npm 8.19.2
OS: win32 x64

Angular: 14.2.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router, upgrade

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.1.3
@angular/cli                    14.1.3
@schematics/angular             14.1.3
rxjs                            7.5.6
typescript                      4.7.4
AngularJS                       1.8.2

Anything else?

No response

JiaLiPassion wrote this answer on 2022-09-23

@AnderssonPeter , could you show a detailed reproduce steps? I cloned your repo, and clicked the toggle button, the mutation text is output correctly.

AnderssonPeter wrote this answer on 2022-09-23

@JiaLiPassion Seems your right, I was 100% sure I had the issue in that project but now it works as intended again.
I have tested with 3 different versions of chromium and it works as intended in all 3, but I'm 100% sure I had this issue yesterday..

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-09-30
Star Count 84080
Watcher Count 3064
Fork Count 22235
Issue Count 1197

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Ambiguity in numeric literal formatting in test cases 5 2021-12-12 2022-09-23
browser_cookie3 在FreeBSD下安装失败, 是不是将这个模块的引入作为一个可选功能? 1 2022-06-11 2022-08-15
createNodeFromParse: type "link" + type "list" not found 3 2022-05-17 2022-09-05
Error loading library 8 2022-04-18 2022-09-12
Webpack doesn't recompile in watch mode when a partial template is changed. 8 2020-04-15 2022-08-28
[t-breadcrumb] 不论宽度设置,都会弹出tooltip,而且定位出现在页面左上角 10 2022-05-09 2022-08-15
[Question] Is there a way to configure multiple files or streams with different renderers? 2 2021-02-05 2022-08-04
Browser#initialize does not take arguments anymore? 4 2016-09-24 2022-09-24
Commit object seems to be missing ModifiedFiles 2 2022-02-14 2022-09-21
How to change i3 settings 9 2019-02-22 2022-09-17
Add tests that indicated feature_types of learner are correct 2 2021-11-19 2022-07-12
Fix website with learner overview 0 2021-11-16 2022-08-26
ergonomics in fidl翻译 3 2021-06-26 2022-08-29
Highlight syntax for files without an extension 6 2018-07-19 2022-08-30
Template for a dict with variable keys 2 2021-01-24 2022-09-23
Mouse control settings not working in music mode | 音乐模式中鼠标控制设置无效 0 2021-11-28 2022-09-17
use unittest.mock instead of mock 0 2022-03-24 2022-09-20
after drop host, should delete the storage from `show hosts` 1 2021-12-29 2022-07-31
Click events 0 2021-09-17 2021-12-26
Cannot sign in with Microsoft, "Error: Network Error" 1 2022-03-25 2022-09-26
Animated doors 4 2013-11-07 2022-01-15
all-nameservers flag weird output 0 2022-04-28 2022-09-02
Problems with parsing planet-latest.osm.pbf PBF parser 3 2021-11-16 2022-09-20
File "pipes.pyx", line 1465, in spacy.pipeline.pipes.Sentencizer.from_nlp TypeError: type() takes 1 or 3 arguments 3 2022-01-10 2022-09-14
Pygaggle release with spacy 3 1 2022-03-31 2022-09-14
marketplace-operator with changed defaults and `registry.access.redhat.com` not working anymore 2 2021-12-22 2022-08-10
Change the DropDown height 4 2019-02-23 2022-09-19
Dependency Dashboard 0 2021-08-25 2022-09-29
[COT] Implement the `delete` function for custom order table data store 0 2022-04-18 2022-09-04
Cannot get userid although already logged in with same user 3 2022-04-02 2022-09-29
Synchronization of masked and weighted layers for the animation controller is not supported 3 2022-01-28 2022-07-12
stream not working in livewire 6 2020-12-04 2022-09-17
Can not import Trainer 2 2022-07-22 2022-09-11
Cannot access Kong Manager 6 2022-08-16 2022-09-21
chore(deps): update dependency gatsby-theme-apollo-docs to v5.0.8 0 2021-09-30 2022-02-06
C++ loading decoded mesh vertices and indices 2 2021-11-17 2022-09-29
Access violation in mqtt_create_request() 8 2020-06-17 2022-09-29
Where to find $cloudinary.image.url options details 1 2021-01-28 2022-09-30
improve documentation 0 2021-10-15 2022-09-06
Problem With Loading Twice In Vue.js 2 0 2021-10-22 2022-09-17
Repeated plotting of confusion 1 2017-07-06 2022-09-17
Expose mojo APIs for KeyringController to update keyring auto-lock prefs 0 2021-09-29 2022-09-26
Example on how to pass candidate_ids and candidate_sampling_probability in Retrieval 1 2022-02-15 2022-09-13
How to add SSL Certificate pinning in Parse Configuration (Parse SDK iOS) 10 2020-12-29 2022-09-22
error unmarshaling config/jobs/kubernetes-sigs/kind/kind.yaml: error unmarshaling JSON: while decoding JSON: json: unknown field \"always_run\" 3 2022-09-09 2022-09-27
error unmarshaling config/jobs/kubernetes-csi/external-snapshotter/external-snapshotter-config.yaml: error unmarshaling JSON: while decoding JSON: json: unknown field \"resources\" 2 2022-09-08 2022-09-27
Prevent double-calling `RestChannel#sendResponse` 1 2022-09-08 2022-09-03
[CI] RareClusterStateIT testDelayedMappingPropagationOnReplica failing 1 2022-09-08 2022-09-05
[CI] CloneSnapshotIT testRemoveFailedCloneFromCSWithQueuedSnapshotInProgress failing 1 2022-09-08 2022-09-05
Cannot override directory entry pointing to a dead Silo 1 2022-08-09 2022-09-17