I keep getting the following errors:

I copied the code from the tutorial (https://www.apollographql.com/docs/react/recipes/static-typing.html):

Version
I think your destructuring at the bottom should be: ({ loading, error, data : { hero } })
I have the same problem. The destructuring in the docs and the one sugested by @JoviDeCroock does not work.
Any updates/solutions about this error?
FYI - PRs for docs should be in the apollo-client repo - src https://github.com/apollographql/apollo-client/tree/master/docs
Most helpful comment
I have the same problem. The destructuring in the docs and the one sugested by @JoviDeCroock does not work.