使用Gatsby网站进行Netlify构建失败。图片

时间:2020-07-22 22:49:53

标签: gatsby netlify

我在Netlify上部署网站时遇到问题。在Netlify环境中,我得到一个:

3:30:14 PM: failed Building production JavaScript and CSS bundles - 37.321s 3:30:14 PM: error Generating JavaScript bundles failed 3:30:14 PM: Can't resolve '../../../images/inside-shop-dark.jpg' in '/opt/build/repo/src/pages/style/Index' 3:30:14 PM: If you're trying to use a package make sure that '../../../images/inside-shop-dark.jpg' is installed. If you're trying to use a local file make sure that the path is correct.

对于一些图像,但是路径是正确的,并且一切都在本地工作,并且可以在本地构建,但是我似乎无法通过Netlify成功构建。

1 个答案:

答案 0 :(得分:0)

这只是我文件的大小写问题,而github无法识别文件名的更改。现在一切正常,谢谢!