无法导入谷歌加插件离子3项目的模块

问题描述 投票:1回答:1

我使用Hybrid发展ionic-3应用。我越来越麻烦导入谷歌加插件在app.module.ts和page.ts.我已成功安装谷歌加插件从下面的命令,但我第一次面对这个问题。

$离子科尔多瓦插件添加科尔多瓦 - 插件 - GOOGLEPLUS --variable REVERSED_CLIENT_ID = myreversedclientid

$ NPM安装--save @离子本地/谷歌加

我的导入错误是在下面的图像

App.module.ts

enter image description here

Page.ts

enter image description here

离子资讯

CLI包:(C:\ Users \用户的Sandip \应用程序数据\漫游\ NPM \ node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

全球套餐:

cordova (Cordova CLI) : 6.4.0

本地套餐:

@ionic/app-scripts : 3.2.1
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2

系统:

Node : v8.1.4
npm  : 6.5.0
OS   : Windows 8

环境变量:

ANDROID_HOME : E:\newsdk\newsdk\tools;E:\newsdk\newsdk\platform-tools;E:\newsdk\newsdk\build-tools

其他:

backend : pro

我希望这个信息是不够了解我的问题。

angular cordova ionic-framework ionic3 google-plus
1个回答
1
投票

尝试在你正在工作的模块中导入此:

import { GooglePlus } from '@ionic-native/google-plus/ngx'

@ngModule({
   ...
   providers: [
      ...
      GooglePlus
    ]
})
© www.soinside.com 2019 - 2024. All rights reserved.