Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError intersectionObserver(@angular/core/fesm2022/core) #54152

Closed
bjornharvold opened this issue Jan 30, 2024 · 4 comments
Closed

ReferenceError intersectionObserver(@angular/core/fesm2022/core) #54152

bjornharvold opened this issue Jan 30, 2024 · 4 comments
Labels
area: core Issues related to the framework runtime browser: safari core: defer Issues related to @defer blocks. P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone

Comments

@bjornharvold
Copy link

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

core

Is this a regression?

No

Description

Team Angular,

Guessing this has something to do with the new lazy loading feature.

We are making healthy use of Angular lazy loading on this page but we are not able to replicate.

Sentry notifying us of this error.
screencapture-wink2travel-sentry-io-issues-4925478902-2024-01-30-12_26_40

Please provide a link to a minimal reproduction of the bug

https://ota.wink.travel/hotel/hotel-sensai-chiang-mai-thailand

Please provide the exception or error you saw

No response

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

Angular CLI: 17.1.1
Node: 20.11.0
Package Manager: yarn 1.22.21
OS: darwin arm64

Angular: 17.1.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... elements, forms, language-service, localize
... platform-browser, platform-browser-dynamic, router
... service-worker, youtube-player

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1701.1
@angular-devkit/build-angular   17.1.1
@angular-devkit/core            17.1.1
@angular-devkit/schematics      17.1.1
@schematics/angular             17.1.1
ng-packagr                      17.1.2
rxjs                            7.8.1
typescript                      5.3.3
zone.js                         0.14.3

Anything else?

No response

@JoostK
Copy link
Member

JoostK commented Jan 30, 2024

That's strange, IntersectionObserver is documented to be available since Safari 12.2. I do read reports of it being listed as experimental and can therefore be disabled or unavailable in embedded web views. I don't have access to a Safari 16 installation to check, but I couldn't find such feature flag in Safari 17.

@JoostK JoostK added browser: safari core: defer Issues related to @defer blocks. area: core Issues related to the framework runtime labels Jan 30, 2024
@ngbot ngbot bot added this to the needsTriage milestone Jan 30, 2024
@JeanMeche
Copy link
Member

JeanMeche commented Jan 30, 2024

I just tested on a Safari 15.6.1, the developer menu allows to disable the IntersectionObserver and throws that exact error when trying to use it (in a webpack/stackblitz, no error is thrown when invoked in the console).

@AndrewKushnir AndrewKushnir added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Jan 30, 2024
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Jan 30, 2024
@bjornharvold
Copy link
Author

Great detective work @JeanMeche. Will ignore this error as it's a user opt-in on Safari's end. 🍻

@alxhub alxhub closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: core Issues related to the framework runtime browser: safari core: defer Issues related to @defer blocks. P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

5 participants