Gatsby: Source contetful returns `Cannot read property 'localized' of undefined` error

Created on 24 Feb 2019  路  2Comments  路  Source: gatsbyjs/gatsby

I have changed some data in contentful and without changing anything in my gatsby project or config I am now getting this error on develop or build:

error Plugin gatsby-source-contentful returned an error
TypeError: Cannot read property 'localized' of undefined

Can't find anything useful anywhere, and it seems like some chache issues to me, as I don't even have content types in contentful which have localizations that I know to be accountable for such errors.

Solution:

Seems like I solved this one by regenerating contentful access token and using it in config

Most helpful comment

@d-ivashchuk, just letting you know this was useful troubleshooting a similar issue today. Even though you resolved it yourself, sharing the issue and solution helped someone else today. Thank you for sharing what you learned!

All 2 comments

@d-ivashchuk, just letting you know this was useful troubleshooting a similar issue today. Even though you resolved it yourself, sharing the issue and solution helped someone else today. Thank you for sharing what you learned!

Solution is to delete the .cache folder

Was this page helpful?
0 / 5 - 0 ratings

Related issues

3CordGuy picture 3CordGuy  路  3Comments

Oppenheimer1 picture Oppenheimer1  路  3Comments

signalwerk picture signalwerk  路  3Comments

andykais picture andykais  路  3Comments

theduke picture theduke  路  3Comments