I\'m building my first Angular Application. I\'m creating a new Angular application using this command ng new purchase-section
. But when I executing the application
I was facing the same issue while developing an angular6 project. I spent more time finally it's working for me.
Here is the solution:
Open "package.json"
rxjs
and "TypeScript" verstion like below screenshot
Change like the below screenshot:
Next go to your project folder and delete "node_modules" folder.
After delete, next run npm install
in your project folder
Finally run ng serve
. It should work (I tried 3 projects and confirmed).