Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DeprecationWarning: 'getMutableClone' has been deprecated since v4.0.0. Use an appropriate `factory.update...` method instead,.. (look inside)

Tags:

angular

"..use setCommentRange or setSourceMapRange, and avoid setting parent." I've just updated my local Angular CLI vers. of my project and now I get this: "DeprecationWarning: 'getMutableClone' has been deprecated since v4.0.0. Use an appropriate factory.update... method instead, use setCommentRange or setSourceMapRange, and avoid setting parent." How and where can I solve it?

like image 529
Denis Avatar asked Sep 05 '25 20:09

Denis


1 Answers

I had this same problem and I've found that it depends from the new version 4.8 of typescript, I've resolved downgrading it ( add --force if necessary ). This should install typescript 4.7.4

npm i typescript@"<4.8"
like image 83
Sergio Rinaudo Avatar answered Sep 11 '25 02:09

Sergio Rinaudo