ASSET_INVALID: Asset is not what its name says
| Severity | Fault | Stage |
|---|---|---|
| error | customer (the source package) | build output |
What it means
Section titled “What it means”An image or font the package holds is not a file of the type its extension names (a .png that is not a PNG, a .woff2 that is not WOFF2), or an SVG is not well-formed XML of the SVG namespace (a markup error, an unknown entity, a document type with declarations, an SVG without the SVG namespace). The CDN serves each asset with the type of its extension, so a mismatched file would break or be something else.
How to fix
Section titled “How to fix”Export the file again in the format of its extension, or rename it to the extension of its real format. An SVG needs xmlns=“http://www.w3.org/2000/svg” on its root and only the five XML entities (&, <, >, ", ') or numeric ones.