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

Syntax Error #4

Closed
phillfarrugia opened this issue Jan 28, 2016 · 3 comments
Closed

Syntax Error #4

phillfarrugia opened this issue Jan 28, 2016 · 3 comments

Comments

@phillfarrugia
Copy link

Receiving the following error message when I tried spinning up a sample Express project and requiring parse-server.

This happens even if all I do is require('parse-server'), or if I go ahead and follow the example in the README.md

See this test https://tonicdev.com/npm/parse-server

SyntaxError: /app/available_modules/1454024179000/parse-server/index.js:145 request(options, (error, response, body) => { ^^ Unexpected token =>

@gfosco
Copy link
Contributor

gfosco commented Jan 28, 2016

Ah this should be require('parse-server').ParseServer

@gfosco
Copy link
Contributor

gfosco commented Jan 28, 2016

Actually... this is ES6 code and perhaps tonicdev does not support it?...

@phillfarrugia
Copy link
Author

Ah I was on an older version of Node, switched to v4.2.6 and working fine.

Thanks!

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

2 participants