Cannot read property 'raf' of null at animation.js

I have created the side menu and i have given the Logout menu in this so when i click on logout then it is redirecting me on login page but it is showing this error. " Uncaught TypeError: Cannot read property ‘raf’ of null at animation.js:292 "