Skip to content

Cannot set property 'toJSON' of undefined when using react-i18next example #5145

@erise133

Description

@erise133

Examples bug report

Example name

with-react-i18next

Describe the bug

I have problem when running dev server. I've got Cannot set property 'toJSON' of undefined on server. It looks like there is no i18n on request in file i18n.js. Translation doesn't work. On production build everything works well. I've tried most of solutions on Github regarding react-i18next example and always getting this crappy undefined error. Any help will be appreciated.

To Reproduce

Just clone this repository: https://github.com/szczepanbarszczowski/nextjs-starter

Expected behavior

It should work without an error.

Screenshots

zrzut ekranu 2018-09-12 o 13 51 03

System information

  • OS: Mac OS Mojave
  • Browser (if applies) Chrome 68
  • Version of Next.js: 6.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasy to fix issues, good for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions