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

后端 未结 18 2169
北恋
北恋 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 14:01

    Today I faced the same issue. None of the above answers worked except a comment from one @Nasreen Ustad. So what you have to do is:

    1. Go to package.json and modify "rxjs": "^6.0.0" to "rxjs": "6.0.0"
    2. Run npm update in your project

    No need to change typescript version.(Mine: "typescript": "~2.7.2")

提交回复
热议问题