You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "31702160109 (via GitHub)" <gi...@apache.org> on 2023/05/20 09:58:15 UTC

[GitHub] [echarts] 31702160109 commented on issue #16902: Cannot read properties of undefined (reading 'regions')

31702160109 commented on issue #16902:
URL: https://github.com/apache/echarts/issues/16902#issuecomment-1555877441

   "echarts": "^5.4.2"
   
   这个问题刚刚遇到了,解决办法将引入地图文件的方式改一下。
   将
   import "echarts/map/js/china.js"
   改为
   require("echarts/map/js/china.js")
   生产环境就不会报错。


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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