ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: TypeError: null is not an object in logs

Open gdjennings opened this issue 11 years ago • 15 comments

Type: bug

Platform: ios 8 webview

Seeing this error regularly. [Error] TypeError: null is not an object (evaluating 'content.offsetX') (anonymous function) (ionic-angular.js, line 10530) (anonymous function) (ionic.js, line 208)

Doesn't appear to have any noticeable side-effect. Replacing context.offsetX with this.offsetX gets rid of the TypeError

gdjennings avatar Mar 01 '15 05:03 gdjennings

Can you provide a codepen demo of this?

mhartington avatar Mar 13 '15 21:03 mhartington

It might take me a little while to get to this, but I can tell you it involves tabs with a sidemenu in one of the views. It might be exclusive to the WKWebView in iOS which has proven to be buggy enough for me to abandon (along with indexedDB). I will try and create a little repro case. I doubt it will show itself in browser.

gdjennings avatar Mar 16 '15 07:03 gdjennings

I'm seeing this too, happens when I click a link in the left drawer navigation

drkhannah avatar Mar 23 '15 20:03 drkhannah

Are you using the ion-drawer component?

mhartington avatar Mar 23 '15 20:03 mhartington

and

ion-side-menus

On Mon, Mar 23, 2015 at 4:47 PM, Mike Hartington [email protected] wrote:

Are you using the ion-drawer component?

— Reply to this email directly or view it on GitHub https://github.com/driftyco/ionic/issues/3206#issuecomment-85188342.

drkhannah avatar Mar 23 '15 21:03 drkhannah

I get this error in xcode

2015-03-23 17:28:07.094 ionicMenu[9246:60b] CDVPlugin class IonicKeyboard (pluginName: Keyboard) does not exist. 2015-03-23 17:28:07.096 ionicMenu[9246:60b] ERROR: Plugin 'Keyboard' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2015-03-23 17:28:07.097 ionicMenu[9246:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [ "INVALID", "Keyboard", "disableScroll", [ true ] ] 2015-03-23 17:28:24.084 ionicMenu[9246:60b] CDVPlugin class IonicKeyboard (pluginName: Keyboard) does not exist. 2015-03-23 17:28:24.086 ionicMenu[9246:60b] ERROR: Plugin 'Keyboard' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2015-03-23 17:28:24.088 ionicMenu[9246:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [ "INVALID", "Keyboard", "close", [

] ]

drkhannah avatar Mar 23 '15 21:03 drkhannah

Derek

http://newculture.pl/dollar_paypal

24.03.2015, 00:29, "Derek Hannah" [email protected]:I get this error in xcode

2015-03-23 17:28:07.094 ionicMenu[9246:60b] CDVPlugin class IonicKeyboard (pluginName: Keyboard) does not exist. 2015-03-23 17:28:07.096 ionicMenu[9246:60b] ERROR: Plugin 'Keyboard' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2015-03-23 17:28:07.097 ionicMenu[9246:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [ "INVALID", "Keyboard", "disableScroll", [ true ] ] 2015-03-23 17:28:24.084 ionicMenu[9246:60b] CDVPlugin class IonicKeyboard (pluginName: Keyboard) does not exist. 2015-03-23 17:28:24.086 ionicMenu[9246:60b] ERROR: Plugin 'Keyboard' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2015-03-23 17:28:24.088 ionicMenu[9246:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [ "INVALID", "Keyboard", "close", [

] ]

—Reply to this email directly or .

Fayozjon avatar Mar 24 '15 17:03 Fayozjon

Mike

http://www.baltdivision.ru/analitik

23.03.2015, 23:47, "Mike Hartington" [email protected]:Are you using the ion-drawer component?

—Reply to this email directly or .

Fayozjon avatar Mar 24 '15 17:03 Fayozjon

Any other replys on this? Still have no solution

-Derek

On Mar 23, 2015, at 4:47 PM, Mike Hartington [email protected] wrote:

Are you using the ion-drawer component?

— Reply to this email directly or view it on GitHub.

drkhannah avatar Mar 24 '15 17:03 drkhannah

gdjennings

http://thefitfactory.net/speshiti

16.03.2015, 10:22, "gdjennings" [email protected]:It might take me a little while to get to this, but I can tell you it involves tabs with a sidemenu in one of the views. It might be exclusive to the WKWebView in iOS which has proven to be buggy enough for me to abandon (along with indexedDB). I will try and create a little repro case. I doubt it will show itself in browser.

—Reply to this email directly or .

Fayozjon avatar Mar 25 '15 01:03 Fayozjon

Okay, so this seems to be an issue where the keyboard plugin wasn't linked over to the iOS project. Let's try this.

$ ionic platform rm ios
# Check to see if the keyboard plugin is added to the project
$ ionic plugin ls
# If not add it
$ ionic plugin add com.ionic.keyboard
# Add the ios platform back
$ ionic platform add ios

mhartington avatar Mar 30 '15 15:03 mhartington

Greetings @gdjennings!

My sensors indicate a reply was requested, but we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Apr 16 '15 01:04 Ionitron

@mhartington you saved my life today.

SidFeng avatar Jun 06 '15 06:06 SidFeng

I think it may be the config.xml issue. Check your config.xml file about the following configuration Try to change feature name="Keyboard" param name="ios-package" onload="true" value="CDVKeyboard" to feature name="Keyboard" param name="ios-package" onload="true" value="IonicKeyboard"

pitthehan avatar Mar 12 '16 07:03 pitthehan

@pitthehan thanks, that fixed my problem.

kby799 avatar May 09 '16 22:05 kby799