0

我在 Ionic 3 中开发了我的项目。它在 Ionic 3 平台上运行良好。我试图将我的代码更新到 Ionic 4,此时我遇到了这个错误:

ERROR in node_modules/@ionic/angular/dist/providers/nav-controller.d.ts(13,29): error TS1183: An implementation cannot be declared in ambient contexts.
node_modules/@ionic/angular/dist/providers/nav-controller.d.ts(16,29): error TS1183: An implementation cannot be declared in ambient contexts.
node_modules/@ionic/angular/dist/providers/platform.d.ts(7,51): error TS1183: An implementation cannot be declared in ambient contexts.
node_modules/@ionic/angular/dist/providers/platform.d.ts(10,18): error TS1183: An implementation cannot be declared in ambient contexts.

[ERROR] An error occurred while running subprocess ng.
4

0 回答 0