---
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
api_name: liquid
---

# Missing​Asset

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 %}
<img src="/content/assets/images/{{ logo_url }}" alt="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 %}
<img src="/content/assets/images/{{ logo_url }}" alt="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.

***
