tinajs / tina

:dancer: 一款轻巧的渐进式微信小程序框架
https://tina.js.org
Apache License 2.0
1.33k stars 133 forks source link

项目引入 echarts-for-weixin 库,webpack 编译报错 #61

Closed proc07 closed 4 years ago

proc07 commented 4 years ago

TypeError: Class constructor WebpackError cannot be invoked without 'new'。

该库不需要使用 new 来创建,应该如何解决呢。

// https://github.com/ecomfe/echarts-for-weixin/blob/master/pages/bar/index.js

chart = echarts.init(canvas, null, {
    width: width,
    height: height
  });
proc07 commented 4 years ago

已解决,npm bug。命令: npm update 解决