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

Support node 16 (update puppeteer) #100

Open
rsodre opened this issue Dec 21, 2022 · 1 comment
Open

Support node 16 (update puppeteer) #100

rsodre opened this issue Dec 21, 2022 · 1 comment

Comments

@rsodre
Copy link

rsodre commented Dec 21, 2022

I'm reusing my SVG to PNG code that is battle tested on an old (2021!) project, but when deploying to Vercel, I get this error calling the endpoint:

2022-12-21T02:15:00.609Z	9e2b2872-6888-4569-b0e6-0befd516db2d	ERROR	Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (982053).
    at ChromeLauncher.launch (/var/task/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:105:23)
    at async Converter.[getPage] (/var/task/node_modules/convert-svg-core/src/Converter.js:364:24)
    at async Converter.[convert] (/var/task/node_modules/convert-svg-core/src/Converter.js:283:18)
    at async Converter.convert (/var/task/node_modules/convert-svg-core/src/Converter.js:185:12)
    at async API.convert (/var/task/node_modules/convert-svg-core/src/API.js:80:16)
    at async handler (/var/task/.next/server/pages/api/misc/aspng.js:50:23)
    at async Object.apiResolver (/var/task/node_modules/next/dist/server/api-utils/node.js:185:9)
    at async NextNodeServer.runApi (/var/task/node_modules/next/dist/server/next-server.js:395:9)
    at async Object.fn (/var/task/node_modules/next/dist/server/base-server.js:496:37)
    at async Router.execute (/var/task/node_modules/next/dist/server/router.js:226:36)

It seems like the puppeteer version used by this package works only with Node 14, not Node 16.

Some insight...
vercel/community#124

@nevenhsu
Copy link

Do you have any solution to this issue?
I change node to 14 in the vercel setting, but it doesn't work.

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