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

Поддержка Vue 3 #275

Closed
KornetWeb opened this issue Oct 30, 2020 · 5 comments
Closed

Поддержка Vue 3 #275

KornetWeb opened this issue Oct 30, 2020 · 5 comments

Comments

@KornetWeb
Copy link

beforeDestroy` has been renamed to `beforeUnmount

@PNKBizz
Copy link
Member

PNKBizz commented Oct 30, 2020

Спасибо! Подумаю как сохранить обратную совместимость

@KornetWeb
Copy link
Author

KornetWeb commented Oct 30, 2020

Спасибо! Подумаю как сохранить обратную совместимость

Тут еще вот такая ошибка вышла. Возможно это связано как раз с расхождением в Vue3

image

<template lang="pug">
yandexMap(
   :settings="MapConfig.settings"
    :coords="MapConfig.coords"
    :zoom="MapConfig.zoom"
    :behaviors="MapConfig.behaviors"
    :controls="MapConfig.controls"
)
</template>

<script>
'use strict';

import {yandexMap, ymapMarker} from 'vue-yandex-maps';

export default {
    data() {
        return {
            MapConfig: {
                settings : {
                    apiKey    : 'типа ключик',
                    lang      : 'ru_RU',
                    coordorder: 'latlong',
                    version   : '2.1',
                },
                coords   : [
                    55.753960,
                    37.620393,
                ],
                zoom     : 10,
                behaviors: [
                    'scrollZoom',
                ],
                controls : [
                    'fullscreenControl',
                    'geolocationControl',
                    'routeEditor',
                    'rulerControl',
                    'typeSelector',
                    'zoomControl',
                    'routeButtonControl',
                    'routePanelControl',
                ],
            },
        };
    },
    components: {
        yandexMap,
        ymapMarker,
    },
};
</script>

@KornetWeb
Copy link
Author

KornetWeb commented Nov 2, 2020

Если в PhpStorm реформатировать минифицированный файл, то ругается конкретно на строку 329 (e is not a function)

image

Хотелось бы попросить у Вас помощи, можно ли как-то не дожидаясь нового релиза исправить ошибку у себя?

@dmitrymaslov99
Copy link

Most likely this solution will help you: https: //github.com/vuejs/vue/issues/11835. In version 3, a lot has been changed inside the core.

@PNKBizz
Copy link
Member

PNKBizz commented Oct 16, 2021

Исправлено в версии 0.11

@PNKBizz PNKBizz closed this as completed Oct 16, 2021
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

3 participants