-
Notifications
You must be signed in to change notification settings - Fork 102
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
Vue3 + TypeScript = TS7016: Could not find a declaration file for module 'vue-yandex-maps' #356
Comments
Скоро будет бета-версия плагина на 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 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
The text was updated successfully, but these errors were encountered: