didi / vue-tmap

一个基于腾讯地图JavaScript API GL、TypeScript 封装适用于 Vue3 的高性能地图组件库
https://didi.github.io/vue-tmap
Apache License 2.0
92 stars 17 forks source link

vite打包报错 #16

Open coader opened 11 months ago

coader commented 11 months ago

../../node_modules/.pnpm/@map-component+vue-tmap@1.0.1/node_modules/@map-component/vue-tmap/dist/components/dom-overlay.d.ts:1:23 - error TS2688: Cannot find type definition file for '@map-component/tmap-types'.

1 ///



大量的这类错误 请问什么问题 
![image](https://github.com/didi/vue-tmap/assets/3700498/76f80440-256b-496e-8d2e-b05b9d715ab1)

"typescript": "~5.3.2",
    "vite": "^5.0.3",
    "vue": "^3.3.9",
    "vue-tsc": "^1.8.24"
coader commented 11 months ago

加上 devDependencies @map-component/tmap-types

又报: error TS2304: Cannot find name 'DocumentEvent'.

50 originalEvent: DocumentEvent;