node_modules/rxjs/internal/types.d.ts(81,44):错误TS1005:';'安装Angular 6后出现预期的错误 [英] node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected error after installation of Angular 6
问题描述
我遇到了
node_modules/rxjs/internal/types.d.ts(81,44):错误TS1005:';'预期的.
node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
安装Angular 6之后.
after the installation of Angular 6.
检查错误:
ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.
推荐答案
由于版本不匹配,可能会出现此问题.要解决您的问题,您需要对 package.json 文件进行以下更改.
This problem might arise due to version mismatch. To solve your problem you need to do following changes in your package.json file.
第1步:转到package.json
并将"rxjs": "^6.0.0"
修改为"rxjs": "6.0.0"
步骤2 在项目中运行npm install
.
无需更改打字稿版本. (我的:"typescript": "~2.7.2"
)
There is no need to change the typescript version. (Mine: "typescript": "~2.7.2"
)
:如果您使用的是rxjs-compat
,则还需要执行以下操作来解决此问题.将rxjs-compat
版本从"rxjs-compat": "^6.2.2"
更改为"rxjs-compat": "6.2.2"
If you are using rxjs-compat
then you also need to do following in order to fixed the issue. change the rxjs-compat
version from "rxjs-compat": "^6.2.2"
to "rxjs-compat": "6.2.2"
希望这会有所帮助!
这篇关于node_modules/rxjs/internal/types.d.ts(81,44):错误TS1005:';'安装Angular 6后出现预期的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!