question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReferenceError: __DEV__ is not defined

See original GitHub issue

One-line summary [问题简述]

DEV 未定义 报错 图表不展示

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 3.5.3
  • Browser version [浏览器类型和版本]: Chrome 62.0.3202.62(正式版本) (64 位)
  • OS Version [操作系统类型和版本]: macOS 10.12.5 (16F73)

Node Version: v8.4.0

npm Version: 5.3.0

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
PerseveranceZcommented, Nov 9, 2017

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

“echarts”: “3.7.2”, “zrender”: “3.6.3”,

0reactions
cchenggitcommented, Nov 10, 2017

3.8.3也遇到这个问题了,我用vue2引入echarts就会报这个错,找了好久才发现是echarts的问题. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs - React Native - __DEV__ is not defined - Stack Overflow
ReferenceError : __DEV__ is not defined. when I ran tests through Jest. Adding moduleNameMapper: { '^react-native$': 'react-native-web', }.
Read more >
`ReferenceError: __DEV__ is not defined` after update to `3.4 ...
On our production bundle (everything works fine on dev mode), we got this message on runtime ReferenceError: __DEV__ is not defined . We...
Read more >
Uncaught ReferenceError: __DEV__ is not defined : r/reactjs
I'm getting this after I installed the package expo-file-sytem. The error is in the expo-file-system package.
Read more >
ReferenceError: "x" is not defined - JavaScript - MDN Web Docs
The JavaScript exception "variable is not defined" occurs when there is a non-existent variable referenced somewhere.
Read more >
ReferenceError: elementorDevTools is not defined
ReferenceError : elementorDevTools is not defined with Elementor Pro 3.7.3 when editing the posts widget options. Viewing 4 replies - 1 through 4...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found