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

ng build error: Invalid version: "15.2-15.3" #22606

Closed
1 of 15 tasks
shakeri opened this issue Jan 29, 2022 · 78 comments · Fixed by #22610 or Exac/mark4#2
Closed
1 of 15 tasks

ng build error: Invalid version: "15.2-15.3" #22606

shakeri opened this issue Jan 29, 2022 · 78 comments · Fixed by #22610 or Exac/mark4#2

Comments

@shakeri
Copy link

shakeri commented Jan 29, 2022

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

When i build project with Angular CLI, I get this error:

An unhandled exception occurred: Transform failed with 1 error: error: Invalid version: "15.2-15.3" See "C:\Users\MOHAMM~1\AppData\Local\Temp\ng-JBqIfM\angular-errors.log" for further details.

And in angular-errors.log file:

[error] HookWebpackError: Transform failed with 1 error:
error: Invalid version: "15.2-15.3"
    at makeWebpackError (E:\workingfolder\test-app\node_modules\webpack\lib\HookWebpackError.js:48:9)
    at E:\workingfolder\test-app\node_modules\webpack\lib\Compilation.js:3057:12
    at eval (eval at create (E:\workingfolder\test-app\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:98:1)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
-- inner error --
Error: Transform failed with 1 error:
error: Invalid version: "15.2-15.3"
    at failureErrorWithLog (E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:1557:15)
    at E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:1346:29
    at E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:637:9
    at handleIncomingPacket (E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:734:9)
    at Socket.readFromStdout (E:\workingfolder\test-app\node_modules\@angular-devkit\build-angular\node_modules\esbuild\lib\main.js:604:7)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)

🌍 Your Environment



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 13.2.0
Node: 16.13.2
Package Manager: npm 8.4.0
OS: win32 x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1302.0
@angular-devkit/build-angular   13.2.0
@angular-devkit/core            13.2.0
@angular-devkit/schematics      13.2.0
@schematics/angular             13.2.0
rxjs                            7.5.2
typescript                      4.5.5
@idwebmedia
Copy link

Literally was coming here to post the exact error. thanks

@jmbarbier
Copy link

This comes from browserslist

npx browserslist

and_chr 97
and_ff 95
and_qq 10.4
and_uc 12.12
android 97
baidu 7.12
chrome 97
chrome 96
chrome 95
chrome 94
edge 97
edge 96
firefox 96
firefox 95
firefox 94
firefox 91
firefox 78
ie 11
ios_saf 15.2-15.3
ios_saf 15.0-15.1
ios_saf 14.5-14.8
ios_saf 14.0-14.4
ios_saf 12.2-12.5
kaios 2.5
op_mini all
op_mob 64
opera 82
opera 81
safari 15.2-15.3
safari 15.1
safari 14.1
safari 13.1
samsung 16.0
samsung 15.0

The versions interval comes from here :

ios_saf 15.2-15.3

clearing .browserslistrc makes compilation happy again but this is not a real solution !

@idwebmedia
Copy link

This comes from browserslist

npx browserslist

and_chr 97
and_ff 95
and_qq 10.4
and_uc 12.12
android 97
baidu 7.12
chrome 97
chrome 96
chrome 95
chrome 94
edge 97
edge 96
firefox 96
firefox 95
firefox 94
firefox 91
firefox 78
ie 11
ios_saf 15.2-15.3
ios_saf 15.0-15.1
ios_saf 14.5-14.8
ios_saf 14.0-14.4
ios_saf 12.2-12.5
kaios 2.5
op_mini all
op_mob 64
opera 82
opera 81
safari 15.2-15.3
safari 15.1
safari 14.1
safari 13.1
samsung 16.0
samsung 15.0

The versions interval comes from here :

ios_saf 15.2-15.3

clearing .browserslistrc makes compilation happy again but this is not a real solution !

works. thanks

@cvandradg
Copy link

Removing content or properly configurating .browserslistrc file fixes it indeed. Thanks @idwebmedia

@danielehrhardt
Copy link

danielehrhardt commented Jan 30, 2022

Removing content or properly configurating .browserslistrc file fixes it indeed. Thanks @idwebmedia

But i mean i want to have the configuration from the Browserlistrc file?

For now the better Solution is to remove Safari:
.browserslistrc
# last 2 Safari major version

@abf7d
Copy link

abf7d commented Jan 30, 2022

This doesn't solve my problem. I am building a library, not an app. The library doesn't have a .browserlistrc file. There's no .browserlistrc in the root folder either. When I run ng build my-library I get the following:

Building Angular Package

------------------------------------------------------------------------------
Building entry point 'my-library'
------------------------------------------------------------------------------
✖ Compiling with Angular sources in Ivy partial compilation mode.
Transform failed with 1 error:
error: Invalid version: "15.2-15.3"

Any ideas?

@abadakhshan
Copy link

abadakhshan commented Jan 30, 2022

@abf7d

add a .browserlistrc with this content to your library

# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
#   npx browserslist

last 1 Chrome version
last 1 Firefox version

Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

@AlienAggressor
Copy link

AlienAggressor commented Jan 30, 2022

package.json

{
...
  "browserslist": [
    "and_chr 97",
    "and_ff 95",
    "and_qq 10.4",
    "and_uc 12.12",
    "android 97",
    "baidu 7.12",
    "chrome 97",
    "chrome 96",
    "chrome 95",
    "chrome 94",
    "edge 97",
    "edge 96",
    "firefox 96",
    "firefox 95",
    "firefox 94",
    "firefox 91",
    "firefox 78",
    "ie 11",
    "ios_saf 15.0-15.1",
    "ios_saf 14.0-14.4",
    "kaios 2.5",
    "op_mini all",
    "op_mob 64",
    "opera 82",
    "safari 13.1",
    "samsung 16.0",
    "samsung 15.0"
  ],
  ...
}

This worked for me.

@abf7d
Copy link

abf7d commented Jan 30, 2022

add a .browserlistrc with this content to your library

This worked for me. Thanks!

bkimminich added a commit to juice-shop/juice-shop that referenced this issue Jan 30, 2022
@henrikdahl8240
Copy link

Are you serious, Angular apps cannot run on the newest versions of IOS anymore?

Should it really be an improvement?

I suppose this has passed the internal tests, i.e. deemed fine that Angular apps cannot run on the newest versions of IOS anymore.

I must say, that I totally disagree on that position.

Is this going to remain, because then I must revert to the previous version of Angular.

Is it the official policy of Angular, that going forward support for IOS should be discontinued?

@alan-agius4
Copy link
Collaborator

@henrikdahl8240, this is just a bug in the parsing logic of Safari browser versions which needs to be corrected.

We expect browserslist to return an entry for each version ("safari 15.2", "safari 15.3") instead of a range ("safari 15.2-15.3").

This issue is also causing by a change in a transitive dependency which was released over the weekend caniuse-lite which as a result is also causing our (angular-cli) CI to be red.

I should be able to land a fix for this tomorrow.

@henrikdahl8240
Copy link

@alan-agius4 OK. So will it be version 13.2.1 so we can just run update once more?

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Jan 30, 2022

Yes, once released 13.2.1should contain the fix for this issue.

@henrikdahl8240
Copy link

@alan-agius4 , do you think it may also be released tomorrow or when do you think it may be released?

My real point obviously is, if I should rollback or just wait until tomorrow.

@rashad-farajullayev
Copy link

I resolved the problem.
Create a file in the root directory with the name ".browserslistrc"
and put into it the following content:

# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
#   npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
not ios_saf 15.2-15.3
not safari 15.2-15.3

evereq added a commit to ever-co/ever-demand that referenced this issue Feb 27, 2022
* fix: add key prop to mapped screens

* refactor: call drawer navigation into stack navigation

* fix: add key prop

* fix: remove NavigationContainer

* refactor: remove useless code

* refactor: update drawer navigation component name

* refactor: update custom drawer content name

* refactor: update custom drawer content name

* feat: add drawe header height

* feat: design drawer header

* refactor: reduce radius size

* refactor: set header drawer as absolute

* feat: implement header & manage links section

* feat: use translation

* refactor: udapte drawer routing modules logic to solve translation issue

* refactor: udapte drawer routing modules logic to solve translation issue

* refactor: update types name

* fix: set corrent type for onPress prop

* refactor: update icon types

* refactor: update touchableCard behavior

* refactor: update seconday to gray color

* refactor: add secure to img prop of TouchableCard

* refactor: design custom drawer items

* refactor: minor

* refactor: impove ui

* feat: add item focus check

* refactor: update icon style

* feat: Implement DrawerNavigator

* refactor: remove indicator icon

* feat: add fonts

* chore: init react-native configs with fonts

* feat: add font props into the style

* chore(deps): add expo-font

* chore(deps): add expo-app-loading

* feat: async load fonts

* refactor: use custom Icon as default app icon

* feat: set stack navigation gruops

* refactor: update drawer home name

* refactor: improve ui

* refactor: update side_menu title

* feat: add indicator style on relative screen focused

* refactor: update title font size

* chore: remove react-native.config file

* chore: manage app background

* refactor: update default screen bg

* refactor: update default paper colors setting

* feat: add dark color

* refactor: update accent color

* feat: add screens custom header

* feat: implement custom header

* refactor: udpate drawer scrolling behavior

* feat: add translation

* feat: implement Translation screen

* feat: navigation with drawer

* refactor: remove useless codes

* refactor: decrease back btn inner space

* refactor: decrease back btn inner space

* fix: focus on correct drawer list item

* refactor: update header btns ui

* refactor: update translation store for languages compatibility

* refactor: disable title switch

* perf: disable reduxserialization check

* feat: set translations feature

* feat: HEBREW display support

* feat: use ionic package theme

* chore: expo types support

* chore: ignore *.lock files

* refactor: import registerRootComponent from expo

* refactor: convert metro file from TS to JS

* feat: add registration routes group

* feat: implement registrations screens

* chore: expo metro file support

* fix: add spanish translation

* feat: add & implement french translation from ba56fdf

* fix: temporary fix to run app in separete project folder

* fix: Signup screen module path

* chore(deps): remove @babel/runtime from dependencies and upgrade @babel/runtime devDependency

* chore: update paths name

* chore(deps): add @apollo/client & graphql

* refactor: export default enviroment instead of simple export

* feat: implement apollo client to communicate with GQL using env endpoint

* fix: resole cjs files in metro builder

* fix: add key prop to lang item to prevent Child key warn

* fix: add french to sopported lang object

* refactor: update ever app anme

* fix: add french missing prop

* refactor: capitalize translation texts

* refactor: move app screens to the dedicate folder

* refactor: use correct path for imports

* style: format code

* refactor: display registration screen before

* refactor: use FocusAwareStatusBar

* refactor: move commons custom components to didicate folder

* feat: minor design applayed

* refactor: update import path to commons components

* refactor: update import path to commons components

* refactor: update import path to commons components

* refactor: update import path to commons components

* refactor: update default paper roundness

* feat: add facebook & google colors

* feat: design signUp screen

* refactor: update GeoScreen to GetUserAddressScreen

* refactor: update registration by address route name

* style: format code for following linters rules

* style: format code for following linters rules

* chore: use correct linters configuration

* style: update entiere react native app format's codes to match with EverDemand linters rules

* style: update of entire expo app code's format to match with EverDemand's linters

* refactor: minor ui update

* chore: fix quotes rules

* refactor: minor ui update

* refactor: update of sign up by address screen file

* fix: match jsx-quotes eslint with EverDemand linters rules

* fix: watch setNavGroup

* feat: done signup by address ui

* refactor: update side_menu ever prop value

* refactor: use native alert

* chore: overrides spaced-comment rules & launch error for jsx-quotes

* refactor: use paper activity indicator

* chore: remove @type/expo. expo provides its own type definitions

* fix: config expo for lerna mono repo support

* style: reordered codes

* fix: add .browserslistrc to solve this Invalid version: 15.2-15.3

see: angular/angular-cli#22606

* refactor: move rules from .browserslistrc file to package.json

* chore: add watchman default config

* fix: use expo monorepos config to resolve expo package in EverDemand. Experimental, need tests :)

* feat: define external drawer links

* feat: add Orderhistory screen

* feat: add Orderhistory screen

* fix: use metro monorepo config

* style: add useful comments

* feat: get all users for demo

* refactor: update user store

* feat: store first user data from graph api

* refactor: use correct Appolo client uri end point

* feat: get products data

* feat: add & implement product item

* feat: design product item

* feat: design product item

* refactor: display diffrente images

* refactor: update product item ui and add demo images

* feat: add order history item

* feat: implement order history component

* refactor: minor ui update

* chore(deps): add useful deps

* chore(deps): add expo-location

* chore(deps): fix  @react-native-async-storage/async-storage version to macth with expo

* refactor: remove apollo query hook

* feat: setup flash messages

* refactor: retrieve user location

* feat: add apollo client in separate folder logic

* refactor: update to add get location logic

* feat: add location helper module and init it with getFormattedAddress

* refactor: update location retrieve logic

* feat: implement form logic

* chore(deps): add validate.js

* chore(deps): use correct version of react-native types

* feat: add rule validation constants for validate.js

* refactor: decrease default roundness

* refactor: update default theme

* chore: disable no-mixed-spaces-and-tabs rule

* refactor: design & add some logic in SignUpByAddress screen

* fix: update structure of rules

* refactor: update rule name

* refactor: update error behavior

* refactor: improve ux

* style: add todo comment

* refactor: update RegisterUser mutation

* refactor: update mudation name

* refactor: add return props and update defs names

* refactor: update ruturn props

* refactor: rename argument interface file

* style: add useful comments

* refactor: update default theme surfaces

* fix: use correct longitude

* feat: user signup integration

* fix: update path of mutation constant

* refactor: update client folder structure and copy

some types from @ever-demand/shop-web-gatsby package

* refactor: minor update

* feat: add global types

* refactor: update type props to match with current graphQl types

* refactor: sign-up invite instead of a user

* refactor: improve ui for invites

* feat: add product apollo GraphQl base

* refactor: update production query argument interface

* refactor: update spaces size

* refactor: minor update

* refactor: make some props optional

* fix: fast end load

* fix: resolve action prop of user reducer action

* fix: set correct user info

* fix: set correct user info

* refactor: get data from api

* refactor: update data structure

* refactor: update Environment interface structure

* refactor: update environment file created and Env type

* refactor: update environment file created and Env type

* chore(deps): add script config dev dependencies

* chore(deps): add script config dev dependencies

* fix: resolve import and var def

* feat: ignore logs in prod mode

* refactor: update graphQl url

* refactor: minor

* refactor: udpate default language type

* refactor: update user store and add isLoggedIn prop on it

* feat: add action to set user store

* refactor: modules app providers

* feat: add custom provideer modules

* refactor: add eslint rule to sesolve Lints conflicts

* refactor: disable logs if reac-native __DEV__ false

* feat: add ProductItem slide support

* refactor: move FlashMessage component to app provider

* refactor: move FlashMessage component to app provider

* refactor: minnor

* fix: resolve infinite splash screen loading

* refactor: add useful comment

* refactor: move router group logic to App provider component

* refactor: set default route group of the current user

* refactor: set default route group of the current user

* feat: add action who's triggered when user success signUp by address

* refactor: use onUserSignUpByAddressSuccess action

* refactor: design products for slide view

* refactor: add productView type in user store and use it in products home

* style: add comment

* feat: translaton store to local storage and set user selected lang on open

* feat: add account screen

* refactor: update code following the linters rules

* fix: update style type and resolve tslints warns

* refactor: set default ripple color

* feat: design account screen

* refactor: minor update

* feat: add action to update product view type

* feat: implement account ui

* feat: create custom dialog common component

* fix: resolve local storage for user store

* chore(deps): add redux-logger

* feat: add logger

* feat: add MerchantsSearch screen

* refactor: reorder code and update default param of search

* feat: add MerchantsSearch route

* refactor: minor update

* chore(deps): add lodash.debounce

* refactor: ui Marchant search screen

* refactor: minor

* feat: add readme file

* Update package.json

* Update app.json

Co-authored-by: Ruslan Konviser <evereq@gmail.com>
@hamza124
Copy link

hamza124 commented Mar 1, 2022

Hello Guys
i try npm audit fix --force after updated, browserlist file with below.
last 2 Chrome version
last 2 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
it's resolved with me

@Badawi7
Copy link

Badawi7 commented Mar 2, 2022

I had to remove Android 97 to make this work.

I also had the "Unknown version 97 of android" exception, but instead of removing that entry altogether, after some code editing (in node_modules\browserslist\index.js) and testing I found out that changing android's version to 98 in .browserslistrc caused the build to succeed.
It doesn't seem to be a common error, as that specific exception message doesn't appear in Google Search.

@beenotung
Copy link

I can fix the error without changing the .browserslistrc by updating the angular compiler version to 13.2.5 or later:

"@angular-devkit/build-angular": "~13.2.5",

beenotung added a commit to beenotung/ionic-starter-conference that referenced this issue Mar 8, 2022
beenotung added a commit to beenotung/ionic-conference-app that referenced this issue Mar 8, 2022
Jefiozie added a commit to scullyio/scully that referenced this issue Mar 9, 2022
* feat(platform-server): limit to version 12, as version 13 needs ESM (#1522)

* chore: bump version and tag it to 2.1.7

* Bump marked to resolve security advisory (#1526)

* fix(scully): upgrade marked version
* fix(scully): upgrade @types/marked

* chore: bump version and tag it to 2.1.8

* ci: add codeql scanning to the workflow (#1528)

* chore: bump version and tag it to 2.1.9

* feat(ng-lib): use GuardsCheckEnd instead of Navigationend. see #1529 (#1533)

* feat(ng-lib): use GuardsCheckEnd instead of Navigationend. see #1529

ISSUES CLOSED: #1529

* fix(monorepo): add workaround for [#22606](angular/angular-cli#22606)

ISSUES CLOSED: #1529

* test(ng-lib): add test to check if tss works with route-resolvers

ISSUES CLOSED: #1529

* chore: bump version and tag it to 2.1.10

* fix(scully): kill background server on exit (#1535)

This will forcefully kill the background server when scully is done processing

ISSUES CLOSED: #1513

* chore: bump version and tag it to 2.1.11

* chore(deps): bump nanoid from 3.1.30 to 3.2.0 (#1534)

Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.1.30...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump version and tag it to 2.1.12

* chore(deps): bump follow-redirects from 1.14.6 to 1.14.8 (#1540)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.14.6...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump version and tag it to 2.1.13

* fix(ng-lib): don't error when routing from non-Scully page to Scully-genreated page (#1541)

* chore: bump version and tag it to 2.1.14

* chore(deps): bump url-parse from 1.5.4 to 1.5.7 (#1542)

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.4 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](unshiftio/url-parse@1.5.4...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump version and tag it to 2.1.15

* Added spanish translations responding to issue #1321 (#1445)

* Added spanish translations responding to issue #1321

* Update docs/learn/create-a-plugin/create-a-plugin_es.md

Co-authored-by: Andrés Villanueva <andresvillanuevab@gmail.com>

Co-authored-by: Sander Elias <SanderElias@users.noreply.github.com>
Co-authored-by: Andrés Villanueva <andresvillanuevab@gmail.com>

* chore: bump version and tag it to 2.1.16

* chore(monorepo): merge in main

* chore(deps): bump prismjs from 1.25.0 to 1.27.0 (#1548)

Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](PrismJS/prism@v1.25.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump version and tag it to 2.1.17

* fix(schematics): Get schematic tests running and passing plus add logic for gitignore (#1547)

entries

* chore: bump version and tag it to 2.1.18

* chore(monorepo): update depedencies (PPT & PW) to try fixing some scuritty warings (#1551)

* chore: bump version and tag it to 2.1.19

* fix(scully): update selfsigned to fix security issue when using SSL selfsigned certifiates (#1552)

* chore: bump version and tag it to 2.1.20

* fix(schematics): make sure the schematics install the latest version off our playwright plugin, instead of 0.0.2 (#1554)

* chore: bump version and tag it to 2.1.21

* refactor(Actions): we don't need to build after the build-artifacts, because its already there (#1555)

* chore: bump version and tag it to 2.1.22

* test: updated configuration to run tests for schematics and sps, univ… (#1482)

* chore: bump version and tag it to 2.1.23

* chore(monorepo): updating deps

* chore(monorepo): upgrade to latest nx

* chore(monorepo): bump version

* fix(actions): fix on node version 16.13.2 untill next node versions are released

* fix(scully): update deps for ESM use

* fix(scully-plugin-puppeteer): correct depedency import, move from peerdeps to deps (it was in scully

Co-authored-by: Scully-Bot <Scully-Bot@users.noreply.github.com>
Co-authored-by: Zsofia Florek <58311322+zsofiaflorek@users.noreply.github.com>
Co-authored-by: Jeffrey Bosch <Jefiozie@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: manueldose <71591743+manueldose@users.noreply.github.com>
Co-authored-by: Andrés Villanueva <andresvillanuevab@gmail.com>
Co-authored-by: Mike Brocchi <mbrocchi@gmail.com>
@eemt
Copy link

eemt commented Mar 9, 2022

Yes, once released 13.2.1should contain the fix for this issue.

That's great. Thanks. Any chance the fix is going to be pushed into Angular 12?
Using the latest Angular 12 (12.2.16) compiler also has this issue.

@webcat12345
Copy link

I can fix the error without changing the .browserslistrc by updating the angular compiler version to 13.2.5 or later:

"@angular-devkit/build-angular": "~13.2.5",

This solution worked for me. 👍

@dgp1130
Copy link
Collaborator

dgp1130 commented Mar 10, 2022

@eemt, this should be fixed in 12.2.16. Can you confirm that all your Angular packages are updated? If you still see the error, can you post ng version?

@eemt
Copy link

eemt commented Mar 10, 2022

@dgp1130 I had updated @angular/compiler, @angular/cli & @angular/compiler-cli to 12.2.16, but I hadn't updated core and common (12.2.15). Now that I updated core and common to 12.2.16, the error is indeed gone.

Thanks!

@alessiostalla
Copy link

I'm using Angular 13.2.6 and still have the problem in our CI build (not locally, though).

@chalkplum
Copy link

I still get this error 13.1.4 with range in browserlist

Angular CLI: 13.1.4
Node: 16.13.0
Package Manager: npm 8.1.4
OS: win32 x64

Angular: 13.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
... service-worker

Package Version

@angular-devkit/architect 0.1301.4
@angular-devkit/build-angular 13.1.4
@angular-devkit/core 13.1.4
@angular-devkit/schematics 13.1.4
@angular/cdk 13.2.6
@angular/cli 13.1.4
@schematics/angular 13.1.4
rxjs 7.4.0
typescript 4.5.5

i cant go above as i have peer dependency, nice update there i will have to roll back angular to lower version as was ok there,

hunbadco pushed a commit to MandoGroupHun/Mando that referenced this issue Mar 23, 2022
@TomCosta
Copy link

I have solved that by doing:

ng update @angular/core @angular/cli
ng update

Hope it helps.

@alessiostalla
Copy link

I have solved that by doing:

ng update @angular/core @angular/cli
ng update

Hope it helps.

Didn't work for me

tubbynl added a commit to Devoxx4Kids-NPO/littil-frontend that referenced this issue Apr 3, 2022
seems like an invalid Safari version is used based on this file
angular/angular-cli#22606
@hoeni
Copy link

hoeni commented Apr 4, 2022

I had to remove every line resolving to a safari browser from my browserslist to make the build work again. This also means removing lines lie >1% in de.

@strarsis
Copy link

strarsis commented Apr 6, 2022

My approach for a starter project I used (unfamiliar to me):

grep -R 'last 2 Safari major' .

./node_modules/@angular-devkit/build-angular/src/utils/supported-browsers.js:        'last 2 Safari major versions',
./node_modules/@schematics/angular/library/files/.browserslistrc.template:last 2 Safari major versions
./node_modules/@schematics/angular/application/files/.browserslistrc.template:last 2 Safari major versions

npm ls @angular-devkit/build-angular

[...]
└── @angular-devkit/build-angular@13.1.4

npm ls @schematics/angular

[...]
└─┬ @angular/cli@13.1.4
  └── @schematics/angular@13.1.4

(Using david, a npm package update checker
(install it using npm install -g david / yarn global add david)).

david | grep @angular-devkit/build-angular

│ @angular-devkit/build-angular │ ~13.1.0  │ 13.3.2  │

npm install --legacy-peer-deps --save @angular-devkit/build-angular@13.3.2

david | grep @angular/cli

│ @angular/cli                  │ ~13.1.0  │ 13.3.2  │

npm install --legacy-peer-deps --save-dev @angular/cli@13.3.2

Luckily these updates were enough to also update the browser support configurations in the affected dependencies.

@chamikasandamal
Copy link

run npm audit fix --force or update @angular-devkit/build-angular

@leonardo-nicolas
Copy link

run npm audit fix --force or update @angular-devkit/build-angular

I tried run this command, but I had unsuccessful.

arpho added a commit to arpho/trasportoBambini that referenced this issue Apr 24, 2022
ng build --prod did not work there is a problem: angular/angular-cli#22606, just commented browsers
digitalhurricane-io pushed a commit to digitalhurricane-io/password-strength that referenced this issue Apr 28, 2022
…r had a dependency on an old version of @angular-devkit/build-angular
@martinmolema
Copy link

ng update @angular/core @angular/cli

First updated to Angular using npm install -g @angular/cli outside the project folder.

Angular CLI: 13.3.4
Node: 14.17.5
Package Manager: npm 8.3.0
OS: linux x64

Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1303.4 (cli-only)
@angular-devkit/core         13.3.4 (cli-only)
@angular-devkit/schematics   13.3.4 (cli-only)
@schematics/angular          13.3.4 (cli-only)

Then in my project:
Had to remove the node_modules and package-lock.json after updating the version numbers. After that ran npm install again and all is working now.

In my package.json:

  "dependencies": {
    "@angular/animations": "~13.3.5",
    "@angular/cdk": "^13.3.4",
    "@angular/common": "~13.3.5",
    "@angular/compiler": "~13.3.5",
    "@angular/core": "~13.3.5",
    "@angular/forms": "~13.3.5",
    "@angular/material": "^13.3.4",
    "@angular/material-moment-adapter": "^13.3.4",
    "@angular/platform-browser": "~13.3.5",
    "@angular/platform-browser-dynamic": "~13.3.5",
    "@angular/router": "~13.3.5",

I do not have a .browserslistrc in my project folder

@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 Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.