alvarcarto / alvarcarto/url-to-pdf-api

Updating puppeteer to support newer Chrome features

Offen
#188 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
HTML
Sterne
7.1k
Forks
779
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Recently I tried to render a page that uses the newish CSS `aspect-ratio` and the resulting screenshot doesn't recognize it. I suspect the reason is that this project is pinned to puppeteer v2 which predates Chrome support for `aspect-ratio`.

Puppeteer is currently on v19 and it looks like Chrome added support for `aspect-ratio` around the time Puppeteer v13 was released. I tried updating package.json to newer versions but the API in those newer versions has changed (in ways I have not studied closely yet) so the app errors out.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.