ElemeFE / vue-amap

🌍 基于 Vue 2.x 和高德地图的地图组件
https://elemefe.github.io/vue-amap/
MIT License
3.33k stars 584 forks source link

关于vue3.0+Ts使用地图报错 #630

Open FlyFishCode opened 3 years ago

FlyFishCode commented 3 years ago

问题

下载引入报找不倒依赖。配置 vue-amap.d.ts 文件之后,控制台报Cannot read property 'prototype' of undefined

VueAMap 版本

"^0.5.10"

OS/Browsers version

chrome 版本 86.0.4240.111(正式版本) (64 位)

Vue 版本

"^3.0.0"

复现地址

预期

显示地图

实际

不显示地图,报错

feature request

jesse51076008 commented 3 years ago

这玩意儿就是Vue 2.x的组件,在Vue 3.x中肯定报错啊,

MelihAltintas commented 2 years ago

你好呀,

我為 Vue 3.x 開發了 openlayers 包裝器。 如果您願意,您可以查看。 https://github.com/MelihAltintas/vue3-openlayers

文檔:https://vue3openlayers.netlify.app/

FlyFishCode commented 2 years ago

👌