GithubHelp home page GithubHelp logo

Comments (9)

hustcc avatar hustcc commented on May 12, 2024

截图看看,还有你的开发环境,便于我复现。

from echarts-for-react.

Jackie-5 avatar Jackie-5 commented on May 12, 2024

image
webpack 打包的 React 15.4.2,
node 环境 v7.10.0
image
image
image
我定位到的问题是 element-resize-event 这个插件 把this 指向 window 然后 this指向是空的 你看下这个插件?

from echarts-for-react.

Jackie-5 avatar Jackie-5 commented on May 12, 2024

我在我的项目下把这个依赖去掉了,可以正常使用。麻烦查一下是不是这个插件造成的原因呢 element-resize-event 这个插件的window指向错误导致的。

from echarts-for-react.

Jackie-5 avatar Jackie-5 commented on May 12, 2024

我自己重新依赖了版本为2.0.7的 element-resize-event 已经可以正常使用了,大概是 2.0.9会有这样的问题。我在这个插件里已经提过问题了,下面的建议是依赖2.0.7。LZ看下是否要降级一下?

from echarts-for-react.

hustcc avatar hustcc commented on May 12, 2024

可以的,我降到 2.0.7 测试一下试试看,然后发新版本。

但是我这边没有办法复现这个问题,你那边代码有特殊的地方吗?

from echarts-for-react.

hustcc avatar hustcc commented on May 12, 2024

我直接指定 "element-resize-event": "2.0.7",限制死版本了。

v1.2.4 done.

from echarts-for-react.

ChanJuanMei avatar ChanJuanMei commented on May 12, 2024

我也遇到这个问题了,感谢@hustcc 。我也降级到2.0.7就好了

from echarts-for-react.

ChanJuanMei avatar ChanJuanMei commented on May 12, 2024

我有两个项目,一个是2.0.9的普通配置可以运行。另外一个是webpack中配置了bundle-loader,只能采用2.0.7

from echarts-for-react.

hustcc avatar hustcc commented on May 12, 2024

Reference: #166

from echarts-for-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.