javascripthumanizehumanizer

Error with Humanizer.Js


I recently tried Humanizer.Js. I added a nuget reference of the same from here, and added it in my page as <script src="~/Scripts/humanizer/humanizer.js"></script>. However in my page load I am getting an error: "Uncaught TypeError: Cannot read property 'prototype' of undefined" at humanizer.js:409. The stack trace looks like below:

Uncaught TypeError: Cannot read property 'prototype' of undefined
    __extends @ humanizer.js:409
    (anonymous function) @ humanizer.js:416
    Humanizer.Configuration.Humanizer.Configuration @ humanizer.js:422
    Humanizer @ humanizer.js:424
    (anonymous function) @ humanizer.js:426

I have also created a plunk here to replicate the error. Also note that .humanize() also doesn't work.

Any suggestions?


Solution

  • I just released version 1.5 on NuGet, should fix your error