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

SyntaxError: Unexpected token { #190

Closed
hacking-robot opened this issue Mar 20, 2020 · 2 comments
Closed

SyntaxError: Unexpected token { #190

hacking-robot opened this issue Mar 20, 2020 · 2 comments

Comments

@hacking-robot
Copy link

hacking-robot commented Mar 20, 2020

Meteor build issue brought me here:

https://github.com/salesforce/tough-cookie/blob/master/lib/cookie.js#L40
const { fromCallback } = require("universalify");

W20200320-20:35:52.502(0)? (STDERR) const { fromCallback } = require("universalify");
W20200320-20:35:52.503(0)? (STDERR)       ^
W20200320-20:35:52.503(0)? (STDERR)
W20200320-20:35:52.504(0)? (STDERR) SyntaxError: Unexpected token {
W20200320-20:35:52.504(0)? (STDERR)     at Object.exports.runInThisContext (vm.js:53:16)
W20200320-20:35:52.505(0)? (STDERR)     at /var/app/.meteor/local/build/programs/server/boot.js:287:30
W20200320-20:35:52.506(0)? (STDERR)     at Array.forEach (native)
@awaterma
Copy link
Member

We discussed this a bit in p/r 157: #157 (comment). All versions of NodeJS we support, should handle destructuring parameters, as do modern browsers, so I'm not sure what's going on. More background on this feature available here.

Could you please let us know what version of Node are you using? Could you also please reference the Meteor build issue, so we could take a deeper look?

@ShivanKaul
Copy link
Contributor

Closing this, please feel free to re-open if the problem persists!

wjhsf pushed a commit that referenced this issue Feb 8, 2024
* Add README note about --skipApiVersionCheck flag

* fix typo
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