# NPE Loading of third party libraries; JS Scripting

**URL:** <https://community.openhab.org/t/npe-loading-of-third-party-libraries-js-scripting/167727>\
**Category:** Scripts & Rules\
**Created:** [December 30, 2025, 11:30am UTC](https://community.openhab.org/t/npe-loading-of-third-party-libraries-js-scripting/167727 "2025-12-30T11:30:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [December 30, 2025, 3:04pm UTC](https://community.openhab.org/t/npe-loading-of-third-party-libraries-js-scripting/167727/2 "2025-12-30T15:04:10Z")

</div>

Is your rule code in the UI or a .js file?

If a file, is this the full contents of the .js file?

Do you have any other libraries installed which work or do all libraries give the same error. you can install openhab\_rules\_tools and require it just as a test if not. See [openHAB Rules Tools Announcements](https://community.openhab.org/t/openhab-rules-tools-announcements/132032) for details on what this library does if you are curious. But installing it and importing it doesn’t really require extra details.

---

_[View the full topic](https://community.openhab.org/t/npe-loading-of-third-party-libraries-js-scripting/167727)._
