close

[Solved] Compiling with Angular sources in Ivy partial compilation mode. Transform failed with 1 error: error: Invalid version: “15.2-15.3”

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to run my project But I am facing following error: Compiling with Angular sources in Ivy partial compilation mode. Transform failed with 1 error: error: Invalid version: “15.2-15.3” in Angular. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How This Error Occurs ?

I am trying to run my project But I am facing following error.

✖ Compiling with Angular sources in Ivy partial compilation mode.
Transform failed with 1 error:
error: Invalid version: “15.2-15.3”

How To Solve Compiling with Angular sources in Ivy partial compilation mode. Transform failed with 1 error: error: Invalid version: “15.2-15.3” Error ?

  1. How To Solve Compiling with Angular sources in Ivy partial compilation mode. Transform failed with 1 error: error: Invalid version: “15.2-15.3” Error ?

    To Solve Compiling with Angular sources in Ivy partial compilation mode. Transform failed with 1 error: error: Invalid version: “15.2-15.3” ErrorThis is Not Solution But This is Temprary Fix. You Need to Commnet Out Safari from your browserslistrc File And Now, Your error should be solved.

  2. Compiling with Angular sources in Ivy partial compilation mode. Transform failed with 1 error: error: Invalid version: “15.2-15.3”

    To Solve Compiling with Angular sources in Ivy partial compilation mode. Transform failed with 1 error: error: Invalid version: “15.2-15.3” ErrorAdd This Safari version in your .browserslistrc file: not ios_saf 15.2-15.3 and not safari 15.2-15.3 Then, Run Again ng-build now Your error must be solved.

Solution 1: Use 12.2.16 and 13.2.1 of @angular/cli

This error is already Fixed in 12.2.16 and 13.2.1 version of @angular/cli so just Use both of one version and now your error will be solved.

Solution 2: Commentout browserslistrc

This is Not Solution But This is Temprary Fix. You Need to Commnet Out Safari from your browserslistrc File And Now, Your error should be solved.

Solution 3: Add This Safari version in your browserslistrc

Add This Safari version in your .browserslistrc file.

not ios_saf 15.2-15.3
not safari 15.2-15.3

Then, Run Again ng-build now Your error must be solved.

Solution 4: add this to your 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

Hope This solution solved your issue.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment