andrewplummer / Sugar

A Javascript library for working with native objects.
https://sugarjs.com/
MIT License
4.54k stars 305 forks source link

In release 2.0, "".pluralize() is not a function #550

Closed Earl-Brown closed 8 years ago

Earl-Brown commented 8 years ago

Date.create() works, but "".pluralize() yields a TypeError (at least in Chrome)

I have made sure that Sugar.extend() is called.

What tips do you have for resolving this?

andrewplummer commented 8 years ago

So, first, are you using the main build? Pluralize isn't part of the default build (actually it never was). There are a few ways you can build it, the easiest is through the site's new "custom build" too. If you're using it in node you may have to hold tight until the sugar-inflections package is pushed.. should be soon though....

Earl-Brown commented 8 years ago

Using it in Chrome. I downloaded the "Sugar.js" from the main page.

I'll try from the builder

andrewplummer commented 8 years ago

How were you using it before?

Earl-Brown commented 8 years ago

I'm not sure, but I think that's how I got it before. It's been a while :)

andrewplummer commented 8 years ago

But was it always through the site?

Earl-Brown commented 8 years ago

Yep.

andrewplummer commented 8 years ago

Hmm that's strange then.. The inflections module was always excluded from the default build...

Earl-Brown commented 8 years ago

I might have gotten it from the old builder...I really don't remember

andrewplummer commented 8 years ago

I'm just happy someone's using it! It was always kinda off the map... was wondering if it was all that useful....

Earl-Brown commented 8 years ago

I figured "if someone else wrote it, it saves me trouble" :)

andrewplummer commented 8 years ago

Hmm... so to answer your question from yesterday I'm not really sure the best forum to help you out with this... if nothing comes to mind you could always shoot me an email...

Earl-Brown commented 8 years ago

Do you have a chat client that you use? Or would email be better?

andrewplummer commented 8 years ago

Email is maybe better for now I guess

Earl-Brown commented 8 years ago

Using the full build fixed the issue.