Open pkitatta opened 7 years ago
Thanks @wilkovanhoek, I will try to investigate. In the meantime thanks for your workaround.
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.
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.
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?