Skip to content

[Regression] Angular apps not working in Safari v15 due to ReferenceError #26154

@gbrunow

Description

@gbrunow

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

@angular-devkit/build-angular@16.1.6

Description

We're experiencing the exact same issue reported on #24355 on Safari Version 15.5 (17613.2.7.1.8).
The issue started when updating from angular 16.1 to 16.2, more specifically when we update @angular-devkit/build-angular from version 16.1.6 to 16.2.0, and it reproduces on 16.2.8.

Minimal Reproduction

See #24355

Exception or Error

No response

Your Environment

Angular CLI: 16.2.8
Node: 18.16.0
Package Manager: npm 9.5.1
OS: darwin arm64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1602.0
@angular-devkit/build-angular   16.2.0
@angular-devkit/core            16.2.0
@angular-devkit/schematics      16.2.8
@angular/cdk                    16.2.10
@angular/cli                    16.2.8
@schematics/angular             16.2.8
rxjs                            7.8.1
typescript                      5.1.6
zone.js                         0.13.1

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions