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

AWS Lambda puppeteer #33

Closed
moisesrodriguez opened this issue Jun 4, 2019 · 1 comment
Closed

AWS Lambda puppeteer #33

moisesrodriguez opened this issue Jun 4, 2019 · 1 comment

Comments

@moisesrodriguez
Copy link

moisesrodriguez commented Jun 4, 2019

I've been using this package for a while on AWS Lambda on the pre 1.x version. I was looking to update my package to the latest version. But I'm having trouble with running puppeteer in AWS Lambda I've search for various solutions online but haven't found one yet that works. Was wondering if you had a possible solution or an alternative. It all started with this error:

Failed to launch chrome!\n/var/task/node_modules/puppeteer/

I've tried using puppeteer-core, puppeteer-lambda and varios other things I've found online.

@pofider
Copy link
Owner

pofider commented Jun 4, 2019

Check this tutorial
https://jsreport.net/learn/aws-lambda-serverless

It is not exactly for this package. However, it is for the project which using this package and it shows how to run puppeteer on lambda.

Or you can keep using phantomjs even with the latest html-to-xlsx. Check the tests
https://github.com/pofider/html-to-xlsx/blob/master/test/test.js

@pofider pofider closed this as completed Jun 4, 2019
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