ecomfe / zrender

A lightweight graphic library providing 2d draw for Apache ECharts

Home Page:https://ecomfe.github.io/zrender-doc/public/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error at create painterCtors

vcc0827 opened this issue · comments

开发环境下正常使用,打包部署到线上时,该行代码报错 var painter = new painterCtors[rendererType](dom, storage, opts, id);
错误代码:Uncaught TypeError: Ft[s] is not a constructor (zrender.js:69 )
请问是项目执行打包的时候没有正确打包文件吗?

请参考这里 #981 (comment) 。大概是因为没有显式导入渲染器,以至于 build 的时候被 tree-shaked 了。