Humanizer.Js 错误

Error with Humanizer.Js

我最近尝试 Humanizer.Js. I added a nuget reference of the same from here,并将其作为 <script src="~/Scripts/humanizer/humanizer.js"></script> 添加到我的页面中。 但是在我的页面加载中出现错误: "Uncaught TypeError: Cannot read property 'prototype' of undefined" 在 humanizer.js:409。堆栈跟踪如下所示:

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

我还创建了一个 plunk here 来复制错误。另请注意,.humanize() 也不起作用。

有什么建议吗?

我刚刚在 NuGet 上发布了 1.5 版,应该可以修复您的错误