首頁 / 浏覽問題 / WebGIS / 問題詳情
uniapp引入'@supermap/iclient-openlayers'時(shí)候報錯
hao
2EXP 2025年04月30日

ol由10降到(dào)4.6.5
 

無法找到(dào)模塊“@supermap/iclient-openlayers”的(de)聲明文件。“D:/Hao/code/app/aiday_airport/node_modules/.pnpm/@supermap+iclient-openlayers@10.0.0/node_modules/@supermap/iclient-openlayers/index.js”隐式擁有 "any" 類型。
無法找到(dào)模塊“@supermap/iclient-openlayers”的(de)聲明文件。“D:/Hao/code/app/aiday_airport/node_modules/.pnpm/@supermap+iclient-openlayers@10.0.0/node_modules/@supermap/iclient-openlayers/index.js”隐式擁有 "any" 類型。

嘗試使用 `npm i --save-dev @types/supermap__iclient-openlayers` (如果存在(zài)),或者添加一(yī / yì /yí)個(gè)包含 `declare module '@supermap/iclient-openlayers';` 的(de)新聲明(.d.ts)文件

1個(gè)回答

您好,uni-app的(de)使用請參考官網API https://uniapp.dcloud.io/學習,引用npm第三方庫可參考博客 https://blog.csdn.net/haibo0668/article/details/85061154 

1,191EXP 2025年04月30日
...