iDerekLi / amap-js

基于AMap高德地图构建的API加载器。
https://iderekli.github.io/amap-js
MIT License
30 stars 10 forks source link

ES 方式 import 模块提示错误 #16

Closed shoyuf closed 4 years ago

shoyuf commented 4 years ago
ERROR  Failed to compile with 8 errors               friendly-errors 14:07:52

These dependencies were not found:                    friendly-errors 14:07:52
                                                      friendly-errors 14:07:52
* @babel/runtime-corejs2/core-js/promise in ./node_modules/amap-js/es/load.js, ./node_modules/amap-js/es/loaders/amap-jsapi-loader.js
* @babel/runtime-corejs2/core-js/reflect/construct in ./node_modules/amap-js/es/loaders/amap-jsapi-loader.js
* @babel/runtime-corejs2/core-js/symbol in ./node_modules/amap-js/es/loaders/amap-jsapi-loader.js
* @babel/runtime-corejs2/helpers/esm/extends in ./node_modules/amap-js/es/loaders/amap-jsapi-loader.js
* @babel/runtime-corejs2/helpers/esm/getPrototypeOf in ./node_modules/amap-js/es/loaders/amap-jsapi-loader.js
* @babel/runtime-corejs2/helpers/esm/inheritsLoose in ./node_modules/amap-js/es/loaders/amap-jsapi-loader.js
* @babel/runtime-corejs2/helpers/esm/possibleConstructorReturn in ./node_modules/amap-js/es/loaders/amap-jsapi-loader.js

相关依赖没有打包?

iDerekLi commented 4 years ago

感谢反馈! 此问题已解决 更新安装v2.0.2及以上(包含v2.0.2)版本即可.