# LightDarkImg gebruiken geeft een foutmelding

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

<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: [7 oktober 2025 om 09:16 UTC](https://meta.discourse.org/t/using-lightdarkimg-throws-error/384869/4 "2025-10-07T09:16:43Z")

</div>

> [@NateDhaliwal](#):
>
> `<div class="category-title-name" style={{if (not (this.logoImg))`

This bit looks susoucious. Wrapping something in parenthesis in an ember template causes it to be treated as a helper (i.e. a function). So I think you want to drop one level of brackets there:

```diff
- <div class="category-title-name" style={{if (not (this.logoImg))
+ <div class="category-title-name" style={{if (not this.logoImg)

```

By the way, are you developing against a production instance here? If you use a development instance instead, you should get a much better error message.

---

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