Property 'disableScroll' does not exist on type 'Keyboard'

Hi there … i’m a bit of a novice and i’m trying to work on a commercial Ionic Template, with no help from the developer.

I have followed all of the pre-requisites and not touched any of the original source code but unfortunately when i try to serve the App using ionic serve i get the following, any direction on where to start or further information you require would be greatly appreciated.

Typescript Error
Property 'disableScroll' does not exist on type 'Keyboard'.
src/pages/home/home.ts
this.statusBar.styleLightContent();
this.keyboard.disableScroll(false);
this.keyboard.hideKeyboardAccessoryBar(false);

Typescript Error
Property 'hideKeyboardAccessoryBar' does not exist on type 'Keyboard'.
src/pages/home/home.ts
	this.keyboard.disableScroll(false);
	this.keyboard.hideKeyboardAccessoryBar(false);
}
1 Like

Any solution for this?
I am having same error here

[app-scripts]             Property 'disableScroll' does not exist on type 'Keyboard'.
[app-scripts]       L55:    //*** Control Keyboard
[app-scripts]       L56:    this.keyboard.disableScroll(true);
[app-scripts]       L57:  });
1 Like

Sadly, no update on this one :frowning:

Also having this issue… Wasnt an issue a few weeks ago in another PC. I suspect this method was removed/changed recently and now it downloaded a new version/patch of the latest code onto my new machine and outputs this error…

Even i am facing this issue after i update to the latest version :frowning:

hideKeyboardAccessoryBar is hideFormAccessoryBar in new update

I have the same problem, any solution?

Try this
npm install --save @ionic-native/keyboard@4.12.0

5 Likes

thank you so much. it’s work for me