echarts icon indicating copy to clipboard operation
echarts copied to clipboard

更新echarts后出了个错

Open ziaochina opened this issue 9 years ago • 14 comments

Uncaught ReferenceError: DEV is not defined at Function.RootClass.extend (clazz.js:66) at Object. (Component.js:23) at webpack_require (bootstrap 967f14c65e24b5070280:54) at Object. (vendor.967f14c6.bundle.js:169604) at webpack_require (bootstrap 967f14c65e24b5070280:54) at Object. (vendor.967f14c6.bundle.js:5644) at Object.defineProperty.value (echarts.js:2003) at webpack_require (bootstrap 967f14c65e24b5070280:54) at Object.idStart (vendor.967f14c6.bundle.js:77980) at webpack_require (bootstrap 967f14c65e24b5070280:54)

ziaochina avatar Nov 09 '17 04:11 ziaochina

我這裡也是遇到相同問題,請問有無解決方法,謝謝

hithto avatar Nov 09 '17 07:11 hithto

没有快疯了,找一天没找到原因

2017-11-09 15:24 GMT+08:00 Kungihong [email protected]:

我這裡也是遇到相同問題,請問有無解決方法,謝謝

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ecomfe/echarts/issues/6991#issuecomment-343069013, or mute the thread https://github.com/notifications/unsubscribe-auth/AEST6EIPypDwOTrhi_zF9REwqSy5T59Cks5s0qjAgaJpZM4QXbPf .

ziaochina avatar Nov 09 '17 07:11 ziaochina

我也遇到同样问题 TypeError: Path.extend is not a function ./node_modules/echarts/lib/util/graphic.js.graphic.extendShape 版本:3.7.2

yiminlab avatar Nov 09 '17 07:11 yiminlab

Uncaught TypeError: T.extend is not a function at Object.L.extendShape (vendor.7910285e0d21a9dbb804.js:10) at Object. (vendor.7910285e0d21a9dbb804.js:25) at n (manifest.6a42d4d73aae460747f8.js:1) at Object. (vendor.7910285e0d21a9dbb804.js:52) at n (manifest.6a42d4d73aae460747f8.js:1) at Object. (vendor.7910285e0d21a9dbb804.js:10) at Object. (vendor.7910285e0d21a9dbb804.js:10) at n (manifest.6a42d4d73aae460747f8.js:1) at Object. (app.a70cce6a403180298dba.js:1) at n (manifest.6a42d4d73aae460747f8.js:1)

image

weizs avatar Nov 09 '17 07:11 weizs

有没有人解决了告知一声....找了一个下午了问题...

JaegerFong avatar Nov 09 '17 07:11 JaegerFong

我拷贝了同事的echarts,zrender后正常使用了

yiminlab avatar Nov 09 '17 07:11 yiminlab

搞定了,我用的yarn,在packages里配置好了 "resolutions": { "zrender": "3.6.3" }

weizs avatar Nov 09 '17 08:11 weizs

今天更新项目,也遇到同样的问题
Uncaught TypeError: Path.extend is not a function

RaulZuo avatar Nov 09 '17 08:11 RaulZuo

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

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

PerseveranceZ avatar Nov 09 '17 10:11 PerseveranceZ

@PerseveranceZ 确实可以

ziaochina avatar Nov 09 '17 10:11 ziaochina

我的部署环境在linux,写死"echarts": "3.7.2", "zrender": "3.6.3",也不行啊!谁来帮帮我

guoliangli123 avatar Nov 09 '17 12:11 guoliangli123

@lgl1993 写定后将原本的node_modules删除, 然后再npm install, 理论上是可以的

evagy avatar Nov 09 '17 13:11 evagy

解决方案见: https://github.com/ecomfe/echarts/issues/7000

mu-yu avatar Nov 10 '17 02:11 mu-yu

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

pissang avatar Nov 10 '17 05:11 pissang