エラーメッセージ
TypeError: Failed to construct 'URL': Invalid URL nextjs
import Image from "next/Image";
...
...
<Image
className={stack.landingImage}
src="/images/hoge.jpg"
alt="hoge"
layout="fill"
objectFit="cover"
objectPosition="center"
/>
next/Imageでのエラー。
原因
不明。
いくら検索してもパッケージにまつわる話しか出てこなく、また、特に該当ソースやコンフィグファイルをいじっていないに関わらず例外を投げられるようになったため、パッケージマネージャー関連の問題と予想。
解決
結局。プロジェクト全体を作り直して解決した。
やはりパッケージのバージョンの依存関連だろう。