このエラーが表示された時の対処法
cannot find module '../public' or its corresponding type declarations.
Next.js は、ルートディレクトリの public フォルダ下で、画像などの静的ファイルを配信できます。public 内のファイルは、ベース URL(/)から始まるコードで参照できます。
例えば、 public/me.png に画像を追加した場合、次のコードで画像にアクセスします:
import Image from 'next/image'
function Avatar() {
return <Image src="/me.png" alt="me" width="64" height="64" />
}
export default Avatar
https://nextjs-ja-translation-docs.vercel.app/docs/basic-features/static-file-serving