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 referred in HTML templates are not found

See original GitHub issue
Overview of the issue

I generated a project using jH 4.0.3 version. I copied all my actual navbar content into navbar.html. The logo in navbar.html is referring to ../../../content/images/my_logo.png

All the images in default project are referred in css files and not from HTML files. I can’t figure how to get this working with images referred directly from HTML. When I start the application, the image is not found. Also, I checked in www folder under build. There is no generated hash file name for my_logo.png.

Motivation for or Use Case

Component HTML must be able to refer to images in .../content/images/... directly without involving CSS

Reproduce the error

Add a new image in /content/images folder and refer to that image directly using <img src>

JHipster Version(s)

4.0.3

Other

node: v7.5.0 npm: 4.2.0 bower: 1.8.0 gulp: 3.9.1 yarn: 0.19.1

  • Checking this box is mandatory (this is just to show you read everything)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
santoshktcommented, Mar 3, 2017

I stupidly did not put html-loader in package.json assuming webpack knows how to pick it. That fixed the issue for me.

0reactions
jduboiscommented, Mar 14, 2017

Just got the same issue today, so I confirm this is a problem 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML image not found (django) - Stack Overflow
template.html <!--{% load static %} should be always top of your template file. It tells Django to load your static files inside template....
Read more >
Including images in FSE HTML templates · Issue #31815 ...
To include images -not placeholders- in HTML templates, the image needs to be remote or uploaded to the media library.
Read more >
Images not showing up in Email sent using email template
Steps:- Go to Documents tab click on New Button Enter Document Name Check check box Externally Available Image Choose file Click on save ......
Read more >
Image is not showing in the email when I use html template.
Hi,. I have uploaded an image using "Document" object under the folder "AT_Images". Now, I have created an HTML template which I am...
Read more >
Add Images to Email Templates in Salesforce Classic
You can include images, such as logos, in your custom HTML and Visualforce email ... HTML and Visualforce email templates not available in:...
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