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

Agendash init issue #14

Closed
elrombehar opened this issue Mar 29, 2016 · 3 comments
Closed

Agendash init issue #14

elrombehar opened this issue Mar 29, 2016 · 3 comments

Comments

@elrombehar
Copy link

Hi,

I'm trying to use Agendash according to documentation, but I get the following error while trying to use the middleware option:

[SyntaxError: C:\Develop\LimitlessDev\seScheduler\node_modules\agendash\lib\agendash.js:42
.find({_id: {$in: jobIds.map((jobId) => new ObjectId(jobId))}})
^^
Unexpected token =>]

I use loopback as framework.
Agenda is running well.
Any idea what might be the ussue?

Thank you and regards,
Elrom

@joeframbach
Copy link
Member

I need one more piece of information: please open your browser's network
inspector and copy the URL and queryparams of the failing request.
On Mar 29, 2016 8:07 AM, "elrombehar" [email protected] wrote:

Hi,

I'm trying to use Agendash according to documentation, but I get the
following error while trying to use the middleware option:

[SyntaxError:
C:\Develop\LimitlessDev\seScheduler\node_modules\agendash\lib\agendash.js:42
.find({_id: {$in: jobIds.map((jobId) => new ObjectId(jobId))}})
^^
Unexpected token =>]

I use loopback as framework.
Agenda is running well.
Any idea what might be the ussue?

Thank you and regards,
Elrom


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#14

@vziukas
Copy link
Contributor

vziukas commented Mar 30, 2016

This code is using ES6 arrow functions. Make sure you are using Node 4 or newer.
Run this in command line to check: node -v

More about arrow functions: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

ES6 compatibility: https://kangax.github.io/compat-table/es6/

@elrombehar
Copy link
Author

Thank you vytas for your help. Updated to latest node and works like a charm.

simison pushed a commit that referenced this issue Jan 16, 2021
Add prism.js to improve metadata syntax highlight
Fixes #14 
Fixes #15
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