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

extract.js: SyntaxError: Unexpected token ( #3

Open
PunkHaz4rd opened this issue Nov 30, 2018 · 2 comments
Open

extract.js: SyntaxError: Unexpected token ( #3

PunkHaz4rd opened this issue Nov 30, 2018 · 2 comments

Comments

@PunkHaz4rd
Copy link

PunkHaz4rd commented Nov 30, 2018

I have this issue with a basic example:

node_modules/aws-puppeteer-lambda/src/extract.js:5
module.exports = async () => {
^ SyntaxError: Unexpected token (

It happens on the line
const { extract, cleanup } = require('aws-puppeteer-lambda');

@iamakulov
Copy link

@PunkHaz4rd Which version of Node.js are you using in your Lambda? I believe this package only works with 8.x (as async/await is not supported before 8.x).

@gemmadlou
Copy link

That looks like a node version issue. v8 as @iamakulov said should do it.

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