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.

Angular 7 assets images path

See original GitHub issue

Hi, I try to use to make components for icons, and icons is in assets /img folder. <svg> <use xlink:href="assets/img/icons.svg#customer"></use> </svg> with ng serve this is working fine, but when use npm run storybook images is not show. How I can include assets to use with storybook in Angular 7?

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
gogs85commented, Feb 21, 2019

Hi, I solved the problem. Thanks.

On Thu, Feb 21, 2019, 10:04 Sven notifications@github.com wrote:

Hi @gogs85 https://github.com/gogs85 anything new on that? Is your problem solved? I am asking as I have the problem. Storybook worked fine on ng-6 but after upgrading to 7 the asset path resolution is not working anymore i.e. images and styles are not found/ used.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/storybooks/storybook/issues/5509#issuecomment-465918236, or mute the thread https://github.com/notifications/unsubscribe-auth/AGPq3Fl3cH9AjkXWFY8QzYFtU6xkuE4eks5vPmEqgaJpZM4anMyb .

0reactions
NavyJotcommented, Feb 18, 2022

I am also facing same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to load image (and other assets) in Angular an project?
Angular -cli includes the assets folder in the build options by default. I got this issue when the name of my images had...
Read more >
Images not loading from assets folder in Angular
You're using the wrong path to the images. In the Angular project, you don't have to add the relative path from your file...
Read more >
Angular 10: not able to use an image from assets in url() in ...
There is no way to use an image from the assets folder with Angular 10. It works fine with v.9. Using the path...
Read more >
Angular: image paths are incorrectly resolved in HTML file
Angular : image paths are incorrectly resolved in HTML file ... THis should not happen as the assets folder is marked as an...
Read more >
Build Your First Angular Website: #7 Adding an Image
It's also a better idea to store this within our project folder so that all assets are served from our same domain.
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