在包json visual studio上手动更新角度版本会导致node_modules错误?

时间:2019-01-24 18:34:12

标签: json angular typescript

我使用Visual Studio在Angular中创建了一个新项目。 我注意到Angular版本的Visual Studio归因于该项目是Angular的5.2版本。

我的客户希望该版本特别是Angular的版本6。 经过研究,发现您可以在package.json文件上手动更改版本。对文件进行这些更改后出现错误。我确实在这里找到了一些关于stackoverflow的帖子,说这些帖子要运行诸如here之类的命令。

但这对我来说还没有解决。我收到此错误:

"ERROR in node_modules/@angular/common/src/location/location.d.ts(1,10): error TS2305: Module '"C:/Users/ABCUSER/source/repos/ABC/ABC/ClientApp/node_modules/rxjs/Rx"' has no exported member 'SubscriptionLike'."

我还应该尝试什么?

我的 package.json 文件可在此处找到:

api.myjson.com/bins/e7rcc

谢谢!

0 个答案:

没有答案