You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/05/26 05:36:01 UTC

[GitHub] [echarts] z384647062 commented on issue #12005: Cannot read property 'extendComponentModel' of undefined at bmap.min.js

z384647062 commented on issue #12005:
URL: https://github.com/apache/echarts/issues/12005#issuecomment-848472194


   > @z384647062 我现在版本是5.1.1,按照你说的引入,但是地图就没法出来了
   
   更新一下:我这边在开发环境下正常,生产环境下无法显示地图,可能是由于BMap的几个模块在webpack打包(我使用的umi)的时候被优化掉了;
   以下是我的解决方式:
   `
   import * as echarts from 'echarts/core';
   import _m from 'echarts/extension-src/bmap/BMapView';
   import _v from 'echarts/extension-src/bmap/BMapModel';
   import { version } from 'echarts/extension-src/bmap/bmap';
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org