-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Comments
Literally was coming here to post the exact error. thanks |
This comes from browserslist
The versions interval comes from here :
clearing .browserslistrc makes compilation happy again but this is not a real solution ! |
works. thanks |
Removing content or properly configurating .browserslistrc file fixes it indeed. Thanks @idwebmedia |
- ng cli 13.2.0 workaround - angular/angular-cli#22606
But i mean i want to have the configuration from the Browserlistrc file? For now the better Solution is to remove Safari: |
This doesn't solve my problem. I am building a library, not an app. The library doesn't have a
Any ideas? |
add a
|
package.json
This worked for me. |
This worked for me. Thanks! |
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? |
@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 ( This issue is also causing by a change in a transitive dependency which was released over the weekend I should be able to land a fix for this tomorrow. |
@alan-agius4 OK. So will it be version 13.2.1 so we can just run update once more? |
Yes, once released |
@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. |
I resolved the problem.
|
* 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>
Hello Guys |
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. |
I can fix the error without changing the
|
* 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>
That's great. Thanks. Any chance the fix is going to be pushed into Angular 12? |
This solution worked for me. 👍 |
@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 |
@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! |
I'm using Angular 13.2.6 and still have the problem in our CI build (not locally, though). |
I still get this error 13.1.4 with range in browserlist Angular CLI: 13.1.4 Angular: 13.1.3 Package Version@angular-devkit/architect 0.1301.4 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, |
I have solved that by doing:
Hope it helps. |
Didn't work for me |
seems like an invalid Safari version is used based on this file angular/angular-cli#22606
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 |
My approach for a starter project I used (unfamiliar to me):
(Using
Luckily these updates were enough to also update the browser support configurations in the affected dependencies. |
run |
I tried run this command, but I had unsuccessful. |
ng build --prod did not work there is a problem: angular/angular-cli#22606, just commented browsers
…r had a dependency on an old version of @angular-devkit/build-angular
First updated to Angular using
Then in my project: In my package.json:
I do not have a |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)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:🌍 Your Environment
The text was updated successfully, but these errors were encountered: