# Using LightDarkImg throws error

**URL:** https://meta.discourse.org/t/using-lightdarkimg-throws-error/384869
**Category:** Development
**Created:** [October 7, 2025, 8:47am UTC](https://meta.discourse.org/t/using-lightdarkimg-throws-error/384869 "2025-10-07T08:47:25Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [October 7, 2025, 8:54am UTC](https://meta.discourse.org/t/using-lightdarkimg-throws-error/384869/2 "2025-10-07T08:54:09Z")

</div>

Can you share the full file, including the imports?

I’d recommend reducing the code down bit-by-bit until it works. e.g. is the error coming from the `{{#if` ? The `(and` ? Or one of the getters?

---

_[View the full topic](https://meta.discourse.org/t/using-lightdarkimg-throws-error/384869)._
