This was due to a mismatch in the disk snapshot compared to in memory.
Create a new Fresh project.
This is a CLI tool to bootstrap a new Fresh project. To do so, run this command:
deno run -Ar jsr:@fresh/init
Go to https://fresh.deno.dev/ for more information about Fresh.