-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
feat: use puppeteer-core instead of puppeteer #336
Conversation
Hey @ratson - unfortunately This issue should be fixed in the upcoming #303 rewrite regardless, as I've ditched the peer dependencies ( Closing this PR for now, but thanks for the initiative! |
Hello, what are the options to use |
@AdrKacz if you have |
Solved by, in esbuild, marking the models as external and manually npm installing them into the bundle. |
@bjornlll can you please share the config files that you found to resolve the issue? |
Sure, but it likely won't be relevant. sst.config.ts const ingestDocFnParams: Omit<sst.aws.FunctionArgs, 'handler'> = {
// ...
nodejs: {
install: {
// This marks the the packages as 'external' to esbuild and manually npm installs them
"jsdom": "npm:[email protected]",
"@sparticuz/chromium": "131.0",
"sharp": "*",
"puppeteer-core": "^23.10.4",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2",
}
},
}; This solution is specific to |
I'm also working with esbuild + SST so it might help more than you think |
Haha! Great to hear. Then you should also know that I had to patch SST to make this work: https://github.com/bjornlll/sst. Submitted a PR to them. Not sure if/when they'll merge: sst/sst#5270 As an alternative you can also use the |
This should address #262 #27 #30 #66
It seems this package is the
puppeteer
types rather than its functionality to download browser.