Error TS1005: ';' expected. TypeScript Angular 6 For First Build error rxjs inside node_modules

后端 未结 18 1970
北恋
北恋 2021-01-31 13:37

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

18条回答
  •  被撕碎了的回忆
    2021-01-31 13:45

    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:

    1. Open "package.json"

    2. rxjs and "TypeScript" verstion like below screenshot

    3. Change like the below screenshot:

    4. Next go to your project folder and delete "node_modules" folder.

    5. After delete, next run npm install in your project folder

    6. Finally run ng serve. It should work (I tried 3 projects and confirmed).

提交回复
热议问题