【发布时间】:2021-12-11 18:23:15
【问题描述】:
我正在尝试将我的代码推送到 Vercel,但在检查类型的有效性时,它在构建步骤中失败。
这是收到的完整错误:
info - Checking validity of types...
Failed to compile.
./node_modules/next/dist/client/image.d.ts:19:14
Type error: Cannot find name 'StaticImageData'.
我尝试将 Next.js 版本回滚到 11,但没有成功。
编辑:
我发现了这个类似的 Github 问题,但似乎没有太大帮助。
【问题讨论】:
标签: next.js vercel nextjs-image