Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All declarations of 'WeakMap' must have identical type parameters

I'm building Ionic App and everything is going fine, but when I cloned my source code to another machine, I get an error as shown in the image.

although the app is compiling without errors at the first machine I checked Ionic, npm, typescript and node versions and they are identical for the two machines.

what I'm missing here!?

enter image description here

like image 658
Mohamed Badr Avatar asked Oct 17 '25 20:10

Mohamed Badr


1 Answers

Just to document this in case anyone has the same issue I was able to fix this by deleting global node_module folder in path

C:\Users\{user_name}\AppData\Roaming\npm\node_modules

and in my case, there was another folder at C:\node_modules as indicated at the very end of the error message

like image 109
Mohamed Badr Avatar answered Oct 19 '25 10:10

Mohamed Badr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!