Skip to content

Docs crashes when default browser language is swedish #1805

@mhfowler

Description

@mhfowler

When I set my browser default language to Swedish, and then log into docs using keycloak for an SSO, it encounters a fatal error soon after logging in.

from the console:

MouseEvent.mozInputSource is deprecated. Use PointerEvent.pointerType instead. _app-828cfd694fa66510.js:102:48874
TypeError: can't access property "page_break", n.slash_menu is undefined
    NextJS 12
framework-235ae9166045690f.js:1:79178
TypeError: can't access property "page_break", n.slash_menu is undefined
    NextJS 12
main-612e0bf0f4565a3c.js:1:68630
A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred

And this is what is shown in the browser:
Image

If I switch to English, or any of the other languages listed, then the error disappears and things work properly.

Is there a way to fix this, or tell docs atleast to use English as a fallback if the browser's default langauge is not supported?

Thank you!

I am running docs via docker with lasuite/impress-backend:v4.0.0

My full compose file is here: https://git.coopcloud.tech/coop-cloud/lasuite-docs/src/branch/main/compose.yml

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions