Skip to content

Error retrieving SVG icon in Material Stackblitz example #11306

@AsafAgranat

Description

@AsafAgranat

Bug, feature request, or proposal:

Bug

What is the expected behavior?

SVG icon should display, in Material's own Stackblitz example from the examples page

What is the current behavior?

SVG icon is not displaying. Console message:
Error retrieving icon: <svg> tag not found

What are the steps to reproduce?

  1. Go to the official icon-component Stackblitz example
  2. Notice the icon is not displaying
  3. Open console, and see the error message

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material 6.0.1

Is there anything else we should know?

Could it be related to Stackblits blocking static assets like SVGs?

UPDATE:
Indeed, it's a static assets issue with Stackblitz. I tried with a remote URL and it worked fine.
You prolly should close this issue - but the Stackblitz example should be updated with remote assets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions