-2

After I've included "echarts-for-react" library to my project, I've started getting Cannot read property 'requestAnimationFrame' of undefined error.

The interesting part is that I'm only getting this error on Windows 10. When I open the project on OS X, everything works as expected. I'm using Chrome version 64.0.3282.186 on both OSs. screenshot

I'm using: react: v15.4.1, webpack: v1.14.0

Do you have any suggestions about this problem?

Nickole
  • 1
  • 2

2 Answers2

0

Some browsers don't support requestAnimationFrame.

You can use a polyfill like this here which will use a setTimeout if requestAnimationFrame is not available

Stretch0
  • 8,362
  • 13
  • 71
  • 133
0

I am the author of echarts-for-react.

Related issue, ref: Running into a '__resizeListeners__' of undefined with react and Semantic-UI accordion

atool
  • 496
  • 5
  • 8