question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggestion: move chrome-aws-lambda to peer dependency

See original GitHub issue

Since the most recent version of chrome-aws-lambda is 49.7 MB, it leaves almost no room for additional client libs in the vercel lambda.

I’ve been running into this issue and it’s really frustrating.

So my proposal is to switch chrome-aws-lambda to be a peer dependency and allow the user of this library to choose which chrome version they want to use.

See my other comment here for the savings we’re talking about: https://github.com/neg4n/next-api-og-image/issues/23#issuecomment-1090319079

This would require also making puppeteer-core a peer dependency, since the two versions need to match up.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
neg4ncommented, Apr 8, 2022

Thanks @transitive-bullshit for your research regarding this topic 🤟🏻 Your suggestion about switching these dependencies to peerDependencies seems very sensible to me. I’ll investigate the topic as well and apply the changes during this weekend 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

chrome-aws-lambda - npm
Chromium Binary for AWS Lambda and Google Cloud Functions. ... Start using chrome-aws-lambda in your project by running `npm i ...
Read more >
npm WARN ... requires a peer of ... but none is installed. You ...
So you cannot install peer dependencies automatically with npm 3 and upwards. Updated Solution: Use following for each peer dependency to ...
Read more >
Optimizing Node.js dependencies in AWS Lambda
This post shows how to bundle and minify Lambda function code to optimize performance and stay up to date with the latest version...
Read more >
Time out when using chrome on lambda - jsreport forum
I am using chrome-aws-lambda to enable running chrome on lambda. I am able to run the example code from this package and it...
Read more >
Ask HN: Does anyone else find the AWS Lambda developer ...
I've been using AWS lambda a bit recently, mostly as a way to glue together ... Anyone have any suggestions or share my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found