Skip to content

Current 15 version breaks compatibility with Firefox 60 (included in browserslist) and optimization true #24347

Closed

Description

@argentum388

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

compiler-cli, compiler

Is this a regression?

Yes

Description

Despite of including old Firefox browser versions (60-78) to browserslist application bundle throws an error in browser console

"SyntaxError: expected expression, got '?'[Learn More] vendor.js"

Note! This bug is only reproduced with optimization.scripts: true in configuration

It seems optimization procedures add to bundle Logical nullish assignment operator "?? "which Firefox 60-78 don't support

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

SyntaxError: expected expression, got '?'[Learn More]  vendor.js

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

Angular CLI: 15.0.1
Node: 14.20.1
Package Manager: npm 6.14.17
OS: linux x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.1
@angular-devkit/build-angular   15.0.1
@angular-devkit/core            15.0.1
@angular-devkit/schematics      15.0.1
@angular/cdk                    15.0.0
@angular/material               15.0.0
@schematics/angular             15.0.1
rxjs                            7.5.7
typescript                      4.8.4

Anything else?

.browserslistrc

Firefox > 59

Activity

  1. transferred this issue fromangular/angularon Nov 30, 2022
  2. alan-agius4 commented on Nov 30, 2022

    @alan-agius4
    Collaborator

    Officially Firefox 60 is not supported by Angular,
    See: https://angular.io/guide/browser-support#browser-support for a list of supported browsers.

    However there might be something going on here. To look into this further we'd require a minimal reproduction.

    You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

    This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

  3. added
    needs: repro steps
    on Nov 30, 2022
  4. added a commit that references this issue on Nov 30, 2022
    5ee3e82
  5. removed
    needs: repro steps
    on Nov 30, 2022
  6. added 2 commits that reference this issue on Dec 1, 2022
    ef99a68
    e6461ba
  7. angular-automatic-lock-bot commented on Jan 1, 2023

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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