--- title: MissingAsset description: Identifies when an asset file referenced doesn't exist. source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset.md --- ExpandOn this page * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset.md#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset.md#disabling-this-check) # MissingAsset Makes sure that all asset files referenced by the `asset_url` filter exist. *** ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail In the following example, there is no corresponding `picture-does-not-exist.png` file in the `assets` directory of the theme: ```liquid {% assign logo_url = 'picture-does-not-exist.png' | asset_url %} Logo ``` ### ✓ Pass In the following example, `picture-in-asset-dir.png` exists in the `assets` directory of the theme: ```liquid {% assign logo_url = 'picture-in-asset-dir.png' | asset_url %} Logo ``` *** ## Options The following example contains the default configuration for this check: ```yaml MissingAsset: enabled: true severity: error ``` | Parameter | Description | | - | - | | `enabled` | Whether this check is enabled. | | `severity` | The [severity](https://shopify.dev/themes/tools/theme-check/configuration#check-severity) of the check. | *** ## Disabling this check Disabling this check isn't recommended. *** * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset.md#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset.md#disabling-this-check)