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

Nuxt Uncaught TypeError: Cannot read properties of null (reading 'offsetWidth') #416

Closed
Ffinnis opened this issue Sep 2, 2022 · 1 comment

Comments

@Ffinnis
Copy link

Ffinnis commented Sep 2, 2022

У меня на сайте две карты, одна работает нормально, а с этой проблемы.

<div v-if="isMapCanBeLoaded && isMounted" class="apartment-map"> <yandex-map :coords="apartment?.location"> <ymap-marker marker-id="home" :coords="apartment?.location" /> </yandex-map> </div>

mounted(): void { this.isMounted = true; }

ClientOnly пробовал, нет идей почему так происходит

UPD: Проблема появляется только если открывать страницу в новом табе или сразу по ссылке, но, увы, мне нужно, чтобы открытие было в новом табе

@PNKBizz
Copy link
Member

PNKBizz commented Sep 2, 2022

Приведите пример всего компонента

@Ffinnis Ffinnis closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants