I have the same issue but adding var frameDur works for me. And then I also onto this error
var frameDur