ReferenceError: requestAnimationFrame is not defined
See original GitHub issueWhere exactly do you put
if(!Highcharts){
global.highcharts = require('react-highcharts/src/fakeHighcharts.js');
}
for node rendering? I have tried several different ways but I am not having any luck. Is there a complete example of this? Thanks in advanced.
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
requestAnimationFrame is not defined · Issue #974 · vuejs/vue ...
The issue is that jsdom-global doesn't add requestAnimationFrame to the global object. The immediate fix is to add requestAnimationFrame to the ...
Read more >requestAnimationFrame is not defined it Next.js with React ...
The problem is in the missed RequestAnimationFrame functionality at the server. This error happens when Next.js tries to render the ...
Read more >What is the best solution to solve requestAnimationFrame is ...
The requestAnimationFrame is not defined” is an Angular universal server running issue. The best solution for this issue is to search for ...
Read more >ReferenceError: requestAnimationFrame is not defined
I have just updated to 2.9.10 and now get this error when running tests in Jest. ReferenceError: requestAnimationFrame is not defined at ...
Read more >requestAnimationFrame is not defined' in Vuetify unit test ...
Coding example for the question How to fix 'ReferenceError: requestAnimationFrame is not defined' in Vuetify unit test-vuetify.js.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Should be fixed in 8.4.1, feel free to reopen if not
Browser: Chrome Version 51.0.2704.103 (64-bit) react-highcharts version 8.3.3
There error is just
Uncaught TypeError: Cannot read property 'requestAnimationFrame' of undefined
I believe the problem is line 33 in chartsFactory.jsx:
global.requestAnimationFrame && requestAnimationFrame(()=>{
global
isn’t defined in the browser. If I update the code to haveglobal
default towindow
the error goes away.