Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obj has no method 'endsWith' #2

Open
LarsBuur opened this issue Dec 15, 2014 · 2 comments
Open

obj has no method 'endsWith' #2

LarsBuur opened this issue Dec 15, 2014 · 2 comments

Comments

@LarsBuur
Copy link

Just added differential:workers

the package starts by reporting: MASTER: Requeued 0 jobs.

and then throws this error three times:

 TypeError: Object function (obj) {                                                                                // 48
     if (obj instanceof _) return obj;                                                                    // 49
     if (!(this instanceof _)) return new _(obj);                                                         // 50
     this._wrapped = obj;                                                                                 // 51
   } has no method 'endsWith'
     at packages/differential:workers/lib/init.coffee:13:23
     at Function._.each._.forEach (packages/underscore/underscore.js:113:1)
     at withJobs (packages/differential:workers/lib/init.coffee:12:5)
     at Package (packages/differential:workers/lib/init.coffee:89:7)

the source in /lib/init.coffee line 13 says:

cb(val, key) if _.endsWith(key, "Job") and key isnt "Job"

the problem is that my version of underscore does not include endsWith and http://underscorejs.org/ does not defined it either.

@schnie
Copy link
Contributor

schnie commented Dec 15, 2014

Thanks for letting me know! I'll address it in the next release, which
will probably be pretty soon. Until then you can add the underscore string
package to your app.
meteor add wizonesolutions:underscore-string.

https://atmospherejs.com/wizonesolutions/underscore-string

On Mon, Dec 15, 2014 at 5:08 AM, Lars Buur [email protected] wrote:

Just added differential:workers

the package starts by reporting: MASTER: Requeued 0 jobs.

and then throws this error three times:

´´´
TypeError: Object function (obj) { // 48
if (obj instanceof

_) return obj; // 49 if (!(this instanceof _)) return new (obj); // 50
this.wrapped = obj; // 51 } has no method 'endsWith' at
packages/differential:workers/lib/init.coffee:13:23 at Function.
.each.
.forEach
(packages/underscore/underscore.js:113:1)
at withJobs (packages/differential:workers/lib/init.coffee:12:5)
at Package (packages/differential:workers/lib/init.coffee:89:7)
´´´
the source in /lib/init.coffee line 13 says:
´´´
cb(val, key) if _.endsWith(key, "Job") and key isnt "Job"
´´´
the problem is that my version of underscore does not include endsWith and
http://underscorejs.org/ does not defined it either.


Reply to this email directly or view it on GitHub
#2.

@mxab
Copy link
Contributor

mxab commented Sep 24, 2015

this #14 should fix this issue

@schnie schnie removed their assignment Jan 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants