Image component from Next.next-env.d.ts file. Because it is not committed to VC and my CI simply runs tsc -noEmit when typechecking, there is no way for Typescript to find the type declarations.next-env.d.ts is usually not committed, but doing so would fix the problem. Another option would be to (somehow?) run next to generate the file in CI. The third option would be to declare the image types myself in another .d.ts file.