# Assets only available to SCSS not JS

**URL:** <https://meta.discourse.org/t/assets-only-available-to-scss-not-js/148231>\
**Category:** Development\
**Created:** [16 באפריל,‏ 2020,‏ 11:59am UTC](https://meta.discourse.org/t/assets-only-available-to-scss-not-js/148231 "2020-04-16T11:59:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [16 בדצמבר,‏ 2021,‏ 10:21am UTC](https://meta.discourse.org/t/assets-only-available-to-scss-not-js/148231/2 "2021-12-16T10:21:53Z")

</div>

Yeah, I’m a bit confused by this too.

At what point is it safe to use a reference like `return settings.theme_uploads.blah` in javascript if ever?

I’m getting “undefined” for `settings.theme_uploads` in my computed property (initially at least).

What’s the right pattern here?

---

_[View the full topic](https://meta.discourse.org/t/assets-only-available-to-scss-not-js/148231)._
