Closed crazy-tosser closed 6 months ago
Скоро будет бета-версия плагина на TS для Vue3. Дописываю документацию
You can create file vue-yandex-maps.d.ts with
declare module 'vue-yandex-maps';
@rodial Please, can you be more specific?
@Goryyn In src/ create file vue-yandex-maps.d.ts with one line
declare module 'vue-yandex-maps';
It's not good solution, but removes the error and I used it
After it, if you don't want to see warnings like "Unknown html tag ymap-marker" use
import {yandexMap as YandexMap, ymapMarker as YmapMarker} from "vue-yandex-maps";
Also you can try to declare export, like
declare module 'vue-yandex-maps' {
import {Component} from "vue";
export const yandexMap: Component
...
}
...but I was too lazy for it
Fixed with 1.x/2.x
При попытке в компоненте сделать
import { yandexMap } from 'vue-yandex-maps'
Получаю ошибкуpackage.json