我的离子信息:
全球套餐:
@ionic/cli-utils : 1.4.0
Cordova CLI : 6.5.0
Ionic CLI : 3.4.0
本地包裹:
@ionic/app-scripts : 1.3.6
@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : android 6.1.2 ios 4.3.1
Ionic Framework : ionic-angular 3.1.1
系统:
Node : v8.0.0
OS : Linux 4.8
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10
我用:
import { Keyboard } from '@ionic-native/keyboard';
@Component({
selector: 'page-search-modal',
templateUrl: 'search-modal.html',
providers: [ Keyboard ]
})
constructor(public keyboard: Keyboard) {}
我有一个运行this.keyboard.show ();
的方法当您打开视图并将焦点放在输入上时。
但是当我跑npm run ionic: serve
时
我收到这个错误:
Roller, public tabsService: TabsService, public keyboard: Keyboard, private renderer: Renderer, private elem
(node:2349) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: watcher error: /home/my-folder/my-app/home/my-folder/my-app/src/**/*.(ts|html|s(c|a)ss): Error: watch /home/my-folder/my-app/src ENOSPC
(node:2349) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[11:31:09] copy finished in 2.79 s
对不起翻译,我会讲西班牙语