Closed eldargazizov closed 2 years ago
Такая же ошибка. Тоже новичок :)
Постараюсь в ближайшее время исправить совместимость с Vue 3
Такая же ошибка. Тоже новичок :)
https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.14/vue.min.js Выше него вроде не работает. на примерах https://vue-yandex-maps.github.io/examples работает, но когда я меняю на версии выше 2.6.14 не работает. Может поддержка только 2ой версии?
Ждем ответа от разработчиков
Ждем ответа от разработчиков
Спасибо, возьму в приоритете
Спасибо, возьму в приоритете
Привет, планируется ли в ближайшее время версия под VueJS 3?
Планируется, но сроков назвать не могу, к сожалению.
Спасибо, будем ждать
Я попробовал сделать минимальные изменения для миграции на Vue 3:
h
из библиотеки vuemyMap
и список маркеров markers
из реактивных данных vue (кстати, зачем они там?)emits
beforeDestroy
на beforeUnmount
defineMarker
исправил this.$slots.balloon[0].elm.outerHTML
на this.$slots.balloon()[0].el.outerHTML
Вроде всё. Проверил на всех примерах из документации, все работают. Может эта информация пригодится для дальнейшей разработки
Исправлено в v 0.11
npm install vue-yandex-maps@next
npm install vue-yandex-maps@next
"vue-yandex-maps": "^0.12.3" but error still is
runtime-core.esm-bundler.js:38 [Vue warn]: Unhandled error during execution of render function
at <YandexMap coords= (2) [55.751244, 37.618423] >
at <ClientOnly>
at <Map>
at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {__v_skip: true} > key="/" >
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at <Transition name="page" mode="out-in" >
at <RouterView name=undefined route=undefined >
at <NuxtPage>
at <App key=1 >
at <NuxtRoot>
runtime-core.esm-bundler.js:38 [Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core
at <YandexMap coords= (2) [55.751244, 37.618423] >
at <ClientOnly>
at <Map>
at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {__v_skip: true} > key="/" >
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at <Transition name="page" mode="out-in" >
at <RouterView name=undefined route=undefined >
at <NuxtPage>
at <App key=1 >
at <NuxtRoot>
vue-yandex-maps.esm.js:1 Uncaught (in promise) TypeError: this.$slots.default is not a function
at Proxy.render (vue-yandex-maps.esm.js:1:11099)
at renderComponentRoot (runtime-core.esm-bundler.js:896:44)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5651:34)
at ReactiveEffect.run (reactivity.esm-bundler.js:185:25)
at instance.update (runtime-core.esm-bundler.js:5694:56)
at callWithErrorHandling (runtime-core.esm-bundler.js:155:36)
at flushJobs (runtime-core.esm-bundler.js:396:17)
На этом плагине возможно отобразить ПАНОРАМНУЮ версию ?
@UvAlex1990 Насколько я понимаю, панорамы - это отдельная функциональность ymap
Как бы подключить эту ПАНОРАМУ в том же компонентенте, что и плагин "vue-yandex-maps" ?
Нашел эту проблему по запросу ошибки an error occured while initializing yandex map with onComponentmount setting
. Ошибка была из-за того, что нужно было настроить ограничения для API-ключа:
Если вы используете Java Script API версии 3.0, необходимо настроить ограничения для API-ключа,
чтобы API работали корректно. В предыдущих версиях это не обязательно, но рекомендуется сделать,
чтобы защитить ключ.
После его настройки и нескольких минут ожидания, запрос https://api-maps.yandex.ru/v3/?apikey=YOUR_API_KEY&lang=ru_RU
начал возвращать скрипт, вместо bad request: invalid key.
Для локального быстрого фикса в настройках ключа прописал:
0.0.0.0/1
128.0.0.0/2
192.0.0.0/3
224.0.0.0/4
Прошу прощения. Может я не так что то делаю, в программировании новичок. Не пинайте сильно)) Делаю все по инструкции, но получаю ошибки.
Maps.vue
App.vue
main.js
packege.json