echarts icon indicating copy to clipboard operation
echarts copied to clipboard

3.8版本编译出错

Open jenny86 opened this issue 9 years ago • 11 comments

3.8版本编译不了,报错 回退到3.7.2页报相同错误

报错内容 DEV is not defined

clazz.js

One-line summary [问题简述]

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

jenny86 avatar Nov 09 '17 02:11 jenny86

+1

ShowJoy avatar Nov 09 '17 02:11 ShowJoy

+2

hithto avatar Nov 09 '17 07:11 hithto

+3

luogao avatar Nov 09 '17 07:11 luogao

+4

JaegerFong avatar Nov 09 '17 07:11 JaegerFong

在package.json的依赖中 把版本号改为以下的 ,可以指定3.7版本 临时解决一下。

"echarts": "https://registry.npmjs.org/echarts/-/echarts-3.7.2.tgz",
 "zrender": "https://registry.npmjs.org/zrender/-/zrender-3.6.3.tgz"

eynol avatar Nov 09 '17 08:11 eynol

package.json 里面写死这2个库的版本,可以暂时解决

"echarts": "3.7.2", "zrender": "3.6.3",

PerseveranceZ avatar Nov 09 '17 10:11 PerseveranceZ

我们在新发布的 3.8.2 中将 lib 下的重新转译成了 CommonJS 模块并且去掉了 DEV,应该解决了大家构建的兼容问题。非常抱歉新版本的模块系统给大家造成了这么大的麻烦。

pissang avatar Nov 10 '17 05:11 pissang

搞了一上午,居然是官方的问题

lemontizz avatar Nov 10 '17 06:11 lemontizz

谢谢 更新 哈哈

luogao avatar Nov 10 '17 06:11 luogao

把我给坑坏了,一直以为是我代码问题,昨晚弄到半夜

wxxcarl avatar Nov 10 '17 06:11 wxxcarl

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 02 '20 12:04 stale[bot]