You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in [default] e:\learning\angular2\Angular2-HNews-master\src\app\stories\stories.component.ts:31:49
Property 'storiesType' does not exist on type '{ [name: string]: any; }'.
ERROR in [default] e:\learning\angular2\Angular2-HNews-master\src\app\user\user.component.ts:25:33
Property 'fetchUser' does not exist on type 'HackerNewsAPIService'.
The text was updated successfully, but these errors were encountered:
Property 'storiesType' does not exist on type '{ [name: string]: any; }' is just because the compiler can't find a storiesType parameter on the object. A quick fix is just to assign type any to the response object to opt-out of type checking. I updated my code with this fix a short while ago:
Property 'fetchUser' does not exist on type 'HackerNewsAPIService'. Hmm where are you seeing this issue? The fetchUser method should be in the data service whenever it's being called so just double check and see if you might have forgotten to add it.
ERROR in [default] e:\learning\angular2\Angular2-HNews-master\src\app\stories\stories.component.ts:31:49
Property 'storiesType' does not exist on type '{ [name: string]: any; }'.
ERROR in [default] e:\learning\angular2\Angular2-HNews-master\src\app\user\user.component.ts:25:33
Property 'fetchUser' does not exist on type 'HackerNewsAPIService'.
The text was updated successfully, but these errors were encountered: