Someone else ran into this with a Hono project recently, but the solution should work for just about anything using Node. The short answer is, “Make sure the project has a tsconfig.json set for ESM.”
The full discussion includes examples that can help: