ERROR [Vue warn]: Error in render: "TypeError: Cannot read property 'file' of undefined"
running 'yarn dev' I get:
ERROR [Vue warn]: Error in render: "TypeError: Cannot read property 'file' of undefined"
found in
---> <Pages/index.vue> at pages/index.vue <Nuxt> <Layouts/default.vue> at layouts/default.vue <Root>
When using the blog template in Contentful, the default images in the Media section are unpublished. As a result, you're trying to fetch the URL of an unavailable image via the Contentful API in your index.vue file.
In your Contentful Space go to Media, tick all images in the list and click publish. Now it will work when you go back to Netlify and trigger deploy.
@sdras maybe Contentful policy regarding the published status of Medias in templates changed since you wrote the tutorial ? Anyway, I'd suggest adding this step in your guide.