Closed jacobtyq closed 4 years ago
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
I am having the same issue. I have looked through some of KyleAMathews theme repos and they seem to be referencing images in the same way. I'm sure this is just a config that needs documentation, hopefully, someone can provide information.
Hi!
Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it.
If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look.
Thanks for using Gatsby! 💜
(Mostly unrelated to OP, but in case any other lost souls find this in Google)
I had this issue recently, because I"d inadvertently included gastby-plugin-remark
twice. The image copying / processing was present in only the first gatsby-plugin-remark
plugin definition, so the second one was perhaps overwriting the content of the first, but without copying the images? Silly mistake, but I was at a complete loss for how to debug. Minimal reproduction notwithstanding, is there some standard debug steps for scenarios like this? (i.e. a way to see I/O after each plugin runs?)
EDIT: Clarify "I don't even know" a bit further. Probably requires understanding how plugins work, which is fine. Hope this comment is helpful to someone.
Having the same issue on one of my sites. Images fine on development mode locally. However in production mode both on local and on production (Netlify) the images don't load. Only the blurred low-res version of images are loaded. I get a 404 error for each image.
Edit: Only webp images are not getting loaded for me. JPGs seem to be accessible if I visit their url manually
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
Hey again!
It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY
. Please feel free to reopen this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks again for being part of the Gatsby community! 💪💜
Having the same issue on one of my sites. Images fine on development mode locally. However in production mode both on local and on production (Netlify) the images don't load. Only the blurred low-res version of images are loaded. I get a 404 error for each image.
Edit: Only webp images are not getting loaded for me. JPGs seem to be accessible if I visit their url manually
Hi, Are the images that are not loading called by useStaticQuery in a component, or are they part of a standard GraphQL query? I am experiencing a similar issue and suspect that images used in a component need to be copied to a static folder.
I think I'm seeing the same issue*. Images are coming from Airtable via a normal GraphQL query, but are missing from the public/static directory. I get the base64 preview but the main image doesn't load. For example, the page is referring to an image like this:
I have public/static/13e3d29311cd136b2ebec50d36b3d549
but that directory is empty on the disk.
Two observations so far:
gatsby develop
)* except happens with gatsby develop for me, maybe a different issue?
I had the problem as well, it was caused buy duplicate use of gatsby-source-filesyste
.
I had the same issue, it was caused by two plugins doing business in my images folder:
Changed this:
plugins: [
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: '/src/images/svg/'
},
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: '/src/images'
},
}
]
To this. Moved my .svg files to root, and updated gatsby-config.js
accordingly
plugins: [
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: '/svg/'
},
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: '/src/images'
},
}
]
solved the problem.
Can confirm @VeVas 's answer. Adding:
rule: { include: '/svg/' }
...worked for me!
Description
I am receiving 404 errors when rendering images from MDX files after running
gatsby build
. Initially I thought it happens to certain images but it happens randomly enough that I am not sure if it's an issue with the images or a config issue. I am importingpng
andjpg
.This issue does not occur on local development environment
gatsby develop -H 0.0.0.0
, only when you build.I have tried to clear the
.cache
andpublic
folders usinggatsby clean
before each build, and I do not know if it's an issue with the images, plugin, or mdx files.Steps to reproduce
Here's my file structure and image tag in markdown.
Expected result
On localhost, the images would appear in their corresponding folder, this happens on
gatsby develop -H 0.0.0.0
Actual result
However, upon deployment, the images are missing and do not show up in the
/public/static/
folder.File is missing from the
public/static
folderEnvironment
Gatsby Config