TypeError: Cannot read property 'language' of undefined
wojciechnowaczyk opened this issue · 1 comments
wojciechnowaczyk commented
Hi!
After npm and added code to gatsby.config i get an error "TypeError: Cannot read property 'language' of undefined". I haven't even used the intl in any of my components. Do you have any idea what causes the problem? Thanks!
TypeError: Cannot read property 'language' of undefined
_default [as wrapPageElement]
node_modules/gatsby-plugin-intl/wrap-page.js:67
64 | location = props.location;
65 | var defaultLanguage = pluginOptions.defaultLanguage;
66 | var intl = pageContext.intl;
> 67 | var language = intl.language,
68 | languages = intl.languages,
69 | redirect = intl.redirect,
70 | routed = intl.routed,
wojciechnowaczyk commented
I found a solution - de.json, en.json, ko.json etc. files cannot be empty. Sorry for bothering!