Just importing jquery.flot.resize.js via webpack produces e.setTimeout is not a function error

173 views
Skip to first unread message

David Sielert

unread,
Jan 15, 2018, 3:21:32 PM1/15/18
to Flot graphs
import "jquery.flot/jquery.flot.js";
import "jquery.flot/jquery.flot.resize.js";



produces in my console 


Uncaught TypeError: e.setTimeout is not a function
    at
Object.requestAnimationFrame (jquery.flot.resize.js:22)
    at h
(jquery.flot.resize.js:22)

jquery 3.2.1 flot 0.8.3

hikar...@gmail.com

unread,
Sep 21, 2018, 10:08:20 AM9/21/18
to Flot graphs
I have same error. Is there anyone who know the how to solve this problem?

2018年1月16日火曜日 5時21分32秒 UTC+9 David Sielert:

Χρήστος Παππάς

unread,
Sep 22, 2018, 9:10:23 AM9/22/18
to flot-...@googlegroups.com
2 possible answers:

a) Change the jquery version (personally i have stoped using it). I think it's necessery in flot (jflot)
b) Use something like this: var $jq = jQuery.noConflict(true); https://stackoverflow.com/questions/2212602/versus-jquery

Hope that helps!!

--

---
You received this message because you are subscribed to the Google Groups "Flot graphs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flot-graphs...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages