question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Images not Working

See original GitHub issue

Hi @cobidev, I want to thank you for building this. I was able to build my portfolio, including images, and it all worked when I used gatsby develop to preview it. However, when I build it and published it to Github Pages via the gatsby build --prefix-paths && gh-pages -d public -b master command (from the docs) the only image that appears is the project.jpg file. I am not familiar with gatsby, so this could be a problem with the images folder, or the png or jpeg extensions, or just my build. The repo is here and the site is gideon357.github.io. Any help is much appreciated 😄 !

Thanks, @gideon357

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
alexmndzdevcommented, Nov 26, 2020

@summer-cook it seems is a problem with the url(‘’) and the instructions, well to me is not working with that instructions neither; what i did is to put my image in /static (in root directory, create the folder) and to change the line of background to background: url('/image.png'); (see: https://www.gatsbyjs.com/docs/static-folder/). Im gonna do a PR later to fix this 😄

0reactions
summer-cookcommented, Nov 29, 2020

thank you so much for your help @alexmndzdev , that worked perfectly 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images not loading on iPhone? Here's how to fix it
Fix images not working in iMessage · Ensure iMessage is enabled · Force quit and reopen the Messages app · Check #images availability...
Read more >
[8 Fixes] #images Not Working on iPhone 2021 - iMobie
8 Ways to Fix #images Not working on iPhone · 1. Update to the Latest iOS · 2. Restart the Messages App ·...
Read more >
Troubleshoot issues with Google Images - Google Search Help
Troubleshoot issues with Google Images · Step 1: Try private browsing mode · Step 2: Clear your browser's cache & cookies · Step...
Read more >
Fix #images Not Working on iPhone in 2022 - For iOS 16/15/14
How to Fix #images Not Working on iPhone · 1. Go to Settings > Tap General > Tap Language & Region > Tap...
Read more >
5 Reasons Why Your Images Won't Load | SiteUptime Blog
1. Your Photos Are Too Large · 2. The Image Doesn't Exist · 3. Wrong Filename and Extension · 4. Local File Path...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found