SeverinDK / moment-timer

Timer plugin for Moment.js that allows creation of setInterval and setTimeout-like timers.
MIT License
110 stars 33 forks source link

duration not defined #9

Closed prashant-awasthi closed 7 years ago

prashant-awasthi commented 7 years ago

var timer = moment.duration(5, "seconds").timer({ ^

TypeError: Cannot read property 'duration' of undefined at Object. (C:\Users\SkullNull\Desktop\abcde\timer.js:2:19) at Module._compile (module.js:573:30) at Object.Module._extensions..js (module.js:584:10) at Module.load (module.js:507:32) at tryModuleLoad (module.js:470:12) at Function.Module._load (module.js:462:3) at Function.Module.runMain (module.js:609:10) at startup (bootstrap_node.js:158:16) at bootstrap_node.js:598:3

SeverinDK commented 7 years ago

Looks like moment.js can't be found. Did you remember to include that?

SeverinDK commented 7 years ago

Closing this. I assume you solved the issue yourself.