@fantata wrote:
When I first run ionic serve, I get a page or errors along the lines of:
Property ‘user’ does not exist on type ‘Object’
If I re-save any file, ionic reloads and all the errors disappear. Is this normal, or do I have something wrong?
This is always on a response variable which is returned from an http call via rxjs .toPromise().
The res variable is just declared like:.toPromise() .then(res => { console.log(res.user); });So I haven’t declared a type for res as it’s just created when the call comes back.
Posts: 2
Participants: 2