0

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

我的客户希望该版本专门成为 Angular 的第 6 版。我研究并发现您可以在 package.json 文件中手动更改版本。对文件进行这些更改后出现错误。我确实在 stackoverflow 上找到了一些帖子,上面说要运行一些类似这里的命令。

但这对我来说并不奏效。我收到此错误:

"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

提前致谢!

4

0 回答 0