Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: v6.0.0-beta.1 сломан SSR для appearance #6240

Closed
SevereCloud opened this issue Dec 8, 2023 · 1 comment · Fixed by #6243
Closed

[Bug]: v6.0.0-beta.1 сломан SSR для appearance #6240

SevereCloud opened this issue Dec 8, 2023 · 1 comment · Fixed by #6243

Comments

@SevereCloud
Copy link
Contributor

Описание

Server Error
TypeError: Cannot read properties of undefined (reading 'matchMedia')

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
matchMedia
node_modules/@vkontakte/vkui/dist/cssm/hooks/useAutoDetectAppearance.js (15:22)

Версия

6.0.0-beta.1

В каких браузерах воспроизводится проблема?

Chrome

Шаги воспроизведения

Использовать ConfigProvider не передавая свойств

Ожидаемое поведение

No response

Скриншоты

No response

Пример с воспроизведением

return window!.matchMedia('(prefers-color-scheme: dark)')?.matches ? 'dark' : 'light';

@SevereCloud SevereCloud added this to VKUI Dec 8, 2023
@github-project-automation github-project-automation bot moved this to 🗃 Backlog in VKUI Dec 8, 2023
@inomdzhon inomdzhon added the ssr label Dec 8, 2023
@inomdzhon inomdzhon self-assigned this Dec 8, 2023
@inomdzhon inomdzhon moved this from 🗃 Backlog to 🔧 In progress in VKUI Dec 8, 2023
@inomdzhon inomdzhon added this to the v6 milestone Dec 8, 2023
@inomdzhon inomdzhon moved this from 🔧 In progress to 👀 In Review in VKUI Dec 8, 2023
@github-project-automation github-project-automation bot moved this from 👀 In Review to ✅ Done in VKUI Dec 11, 2023
@vkcom-publisher
Copy link
Contributor

v6.0.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants