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));
^
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));
^