vue-baidu-map icon indicating copy to clipboard operation
vue-baidu-map copied to clipboard

'BmlMarkerClusterer' is not exported

Open hanxzi opened this issue 3 years ago • 0 comments

[BUG 反馈] Error: 'BmlMarkerClusterer' is not exported by node_modules/vue-baidu-map/index.js

浏览器版本号

90.0.4430.212

Vue 版本号

[email protected]

组件库版本号

0.21.22

现象描述

global registration BmlMarkerClusterer and node node_modules/gulp/bin/gulp.js build. gulp version 3.9.1.     node v8.11.3 npm v6.14.8

完整异常信息


[15:55:13] Error: 'BmlMarkerClusterer' is not exported by node_modules/vue-baidu-map/index.js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `node node_modules/gulp/bin/gulp.js build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

在线示例 / 仓库 URL

https://github.com/Dafrok/vue-baidu-map

复现用例

import BaiduMap from 'vue-baidu-map';
import { BmlMarkerClusterer } from 'vue-baidu-map';

Vue.use(BaiduMap,{
  ak:''
});
Vue.component('bml-marker-clusterer', BmlMarkerClusterer)


<bml-marker-clusterer :averageCenter="true">
          <bm-marker @click="infoWindowOpen(index)" v-for="(marker,index) in points" :key="index" :position="{lng:marker.longitude,lat:marker.latitude}">
          </bm-marker>
    </bml-marker-clusterer>

预期输出

build success

实际输出

Error: 'BmlMarkerClusterer' is not exported

hanxzi avatar May 31 '21 08:05 hanxzi