node_modules/@xelene/tgui/dist/helpers/telegram.js (3:4) @ getTelegramData
Internal error: ReferenceError: window is not defined
at getTelegramData (./node_modules/@xelene/tgui/dist/helpers/telegram.js:7:5)
at useAppearance (./node_modules/@xelene/tgui/dist/components/Service/AppRoot/hooks/useAppearance.js:20:92)
at eval (./node_modules/@xelene/tgui/dist/components/Service/AppRoot/AppRoot.js:41:156)
I'm making my application in NextJS. Code fails to compile because of this line: https://github.com/XeleneStudio/TelegramUI/blob/main/src/components/Service/AppRoot/hooks/useAppearance.ts#L17