Urigo / Ionic2CLI-Meteor-WhatsApp

WhatsApp Clone tutorial with Ionic 2.0 CLI and Meteor Server
https://www.angular-meteor.com/tutorials/whatsapp2/ionic/setup
163 stars 185 forks source link

Uncaught TypeError: Cannot convert undefined or null to object with Android API 21 (5.0.x) #124

Open pkitatta opened 7 years ago

pkitatta commented 7 years ago

image

The app used to load on android until I got this error which started about 2 weeks ago. I have done everything (including reinstalling my entire environment) but nothing seems to work.

Before testing on android the app works well on firefox, chrome but not explorer. After testing on android, firefox is affected and then chrome is on and off; sometimes giving the error and sometimes not depending on whether you have first run it on android.

I suspect it could be a meteor issue because android tests start failing around step 4 when I install meteor in the project.

Anyone have an idea?

darkbasic commented 6 years ago

Thanks @wilkovanhoek, I will try to investigate. In the meantime thanks for your workaround.

darkbasic commented 6 years ago

See also https://github.com/meteor/meteor/issues/9024

kptcs commented 6 years ago

I am facing the same issue .

Below is the my service for get http request

getSD(): Observable { return this.http.get(this.URL+ '/SOMEURL', {responseType: 'json'}); }

here is my component function

getALLSD() { this.config.getSD().subscribe( data => { this.allSD = data['employee']}, err => console.error(err), () => console.log('done loading employee') ); const obj = this.allSD; console.log(Object.entries(obj)); }

when checking in console its showing error

ERROR TypeError: Cannot convert undefined or null to object

when using ngFor its showing the value

{{ person.name}} Please guide the correct way, I need to see the response in console.

romiohasan commented 5 years ago

had this same error. tried downgrading meteor to 1.5.x and meteor-client-bundler@0.3.0 but still the error was there.

Then finally found out that this error is only showing on emulator. Running perfectly on mobile devices without errors.

If you face this problem then try running in actual device first.