sutoiku / formula.js

JavaScript implementation of most Microsoft Excel formula functions
Other
2.14k stars 293 forks source link

Error: Cannot set property jStat of Undefined #51

Open RachelGreenberger opened 8 years ago

RachelGreenberger commented 8 years ago

Hi, I'm using your library within my custom calculators which are built in React.js. When I build and run my project, I get an error : 'cannot set property 'jStat' of undefined'. I suspect that jStat is trying to set a global variable which interferes with how React.js works under the hood. Did anyone run into such an issue before? Where are you implementing jStat? Thank you

richardcox13 commented 7 years ago

I've had this (loading into a hosted instance of V8). Including jstat.js after Numeral.js appears to have fixed it.

Seems the usage instructions in the readme are missing a dependency.