Ionic framework 正在尝试安装本机HTTP模块

Ionic framework 正在尝试安装本机HTTP模块,ionic-framework,ionic-native,Ionic Framework,Ionic Native,我正在尝试安装本机HTTP(),一切正常。但是,当导入库时,我只看到一个白色屏幕。控制台日志包含以下错误: core.js:4197 ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a function at index.js:499 at Module../node_modules/@ionic-native/http/__iv

我正在尝试安装
本机HTTP
(),一切正常。但是,当导入库时,我只看到一个白色屏幕。控制台日志包含以下错误:

core.js:4197 ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function

at index.js:499
at Module../node_modules/@ionic-native/http/__ivy_ngcc__/index.js (index.js:683)
at __webpack_require__ (bootstrap:84)
at Module../src/app/postlist/postlist.page.ts (default~postlist-postlist-module~tabs-tabs-module.js:742)
at __webpack_require__ (bootstrap:84)
at Module../src/app/tabs/tabs.page.ts (tabs-tabs-module.js:140)
at __webpack_require__ (bootstrap:84)
at Module../src/app/tabs/tabs-routing.module.ts (tabs-tabs-module.js:29)
at __webpack_require__ (bootstrap:84)
at Module../src/app/tabs/tabs.module.ts (tabs-routing.module.ts:36)
at resolvePromise (zone-evergreen.js:798)
at resolvePromise (zone-evergreen.js:750)
at zone-evergreen.js:860
at ZoneDelegate.invokeTask (zone-evergreen.js:399)
at Object.onInvokeTask (core.js:27425)
at ZoneDelegate.invokeTask (zone-evergreen.js:398)
at Zone.runTask (zone-evergreen.js:167)
at drainMicroTaskQueue (zone-evergreen.js:569)
我在安装时看到类似这样的警告(不知道这是否重要):

有什么不对劲

Adding cordova-plugin-advanced-http to package.json
PS D:\myapp> npm install --save @ionic-native/http@4
npm WARN @ionic-native/http@4.20.0 requires a peer of @ionic-native/core@^4.11.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/http@4.20.0 requires a peer of rxjs@^5.5.11 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})