I was able to fix this in my own project by adding the following to my flat config:
{
files: ["server.js"],
languageOptions: {
globals: {
process: "readonly",
console: "readonly",
fetch: "readonly",
},
},
}