Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Visual studio code "ng serve" command fails with "Cannot redefine property: file"

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

This is the error message

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Execution policies set as below

execution policies

Can give any reason for the issue?

>Solution :

There is an issue with node 20.6 that break babel. The fix for node has landed but not been released yet.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading