I created an angular project in visual studio code(version 1.81.1). but when I try to run the program using "ng serve" command give below error.(Node version : 20.6.0,npm version : 10.0.0)
Cannot redefine property: File

Execution policies set as below

Can give any reason for the issue?
There is an issue with node 20.6 that breaks babel. The fix for node has landed but not been released yet.
Downgrading to any previous version of Node (below 20.6) will fix the issue.
Babel has introduced a workaround in 7.22.17 with #15947 with allow Angular to run with 20.6.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With