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

Failed to launch browser process #41

Closed
schwarzsky opened this issue Aug 7, 2022 · 3 comments
Closed

Failed to launch browser process #41

schwarzsky opened this issue Aug 7, 2022 · 3 comments

Comments

@schwarzsky
Copy link

My version is already "next-api-og-image": "^4.2.1", in local running fine but in Vercel gives error

[GET] /api/ogImage?name=rotterdame&creator=schwarzskra
17:16:38:27
2022-08-07T14:16:42.986ZERROR	Error: Failed to launch the browser process!
/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
@neg4n
Copy link
Owner

neg4n commented Aug 7, 2022

Hello @schwarzsky! What is your chrome-aws-lambda version? When doing research in this topic i remember that versions below 6.0.0 were faulty. Please see https://github.com/neg4n/next-api-og-image#short-note-about-the-peer-dependencies

@schwarzsky
Copy link
Author

Sorry.

I have solved according to that comment in a closed issue: #35 (comment)

  • Downgrading Vercel NodeJS version from 16.x to 14.x works.

Also, if you still need the version it is "chrome-aws-lambda": "^6.0.0".

@daveg7lee
Copy link

I got this error again. Because now vercel do not support node 14 and 16

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