Skip to content

Screenshot.ts is not compatible with Deno 2.0 and cannot generate project screenshots. #2863

@SisyphusZheng

Description

@SisyphusZheng

The Fresh project's screenshot tool (www/utils/screenshot.ts) uses an outdated version of Puppeteer (16.2.0) that is not compatible with Deno 2.0+. This resulted in an inability to generate the project screenshots required for the showcase page.

Steps to reproduce
Using Deno 2.0+ version
Run the deno task screenshot command
Observe the error

Error message
error: Uncaught (in promise) TypeError: Deno.writeAllSync is not a function
Deno.writeAllSync(Deno.stdout, this.encoder.encode(msg));
^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions