gcds-components
gcds-components copied to clipboard
bug: Issue with NextJS and i18next-browser-languagedetector
Prerequisites | Prérequis
- [X] I have read the Contributing Guidelines. | J’ai lu les Lignes directrices sur les contributions.
- [X] I agree to follow the Code of Conduct. | J’accepte de me conformer au Code de conduite.
- [X] I have searched for existing issues that already report this problem, without success. | J’ai vérifié parmi les tickets (issues) existants que ce sujet n’avait pas déjà été soumis.
GC Design System Components Package and Version | Paquet et version des composants de Système de design GC
Current Behavior | Comportement observé
Issues compiling on NextJS with i18next-browser-languagedetector
⨯ uncaughtException: TypeError: Cannot read properties of undefined (reading 'split')
at Object.read (webpack-internal:///(ssr)/./node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js:92:30)
Expected Behavior | Comportement attendu
No errors
System Info | Information sur le système
No response
Steps to Reproduce | Étapes pour reproduire le bogue
See link to github issue below, which was a PR for a POC on GC Forms
Code Reproduction URL | URL de reproduction du code
https://github.com/cds-snc/platform-forms-client/pull/4281#issuecomment-2355728595
Additional Information | Informations supplémentaires
No response