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
I'm trying to build this project locally, however visiting the local dev server after running yarn start:build returns an error regarding the language selector.
23:59:13 [200] /en/ 83ms
23:59:13 [ERROR] Cannot read properties of undefined (reading 'map')
Stack trace:
at /home/clee231/works-on-woa/node_modules/astro-i18next/src/components/LanguageSelector.astro:26:19
at AstroComponentInstance.init (/home/clee231/works-on-woa/node_modules/astro/dist/runtime/server/render/astro/instance.js:33:29)
at Object.render (/home/clee231/works-on-woa/node_modules/astro/dist/runtime/server/render/component.js:343:22)
I've tried building this project using Node 20 and 21, but both return the same error.
I'm trying to build this project locally, however visiting the local dev server after running
yarn start:build
returns an error regarding the language selector.I've tried building this project using Node 20 and 21, but both return the same error.
It seems to be referring to this https://github.com/yassinedoghri/astro-i18next/blob/v1.0.0-beta.21/src/components/LanguageSelector.astro#L26, where
i18next.languages
seems to be not defined. Is there a configuration file that needs to be updated?The text was updated successfully, but these errors were encountered: