# ReferenceError: SunCalc is not defined

**URL:** <https://discourse.nodered.org/t/referenceerror-suncalc-is-not-defined/5540>\
**Category:** General\
**Created:** [6 December 2018 18:35 UTC](https://discourse.nodered.org/t/referenceerror-suncalc-is-not-defined/5540 "2018-12-06T18:35:17Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [6 December 2018 19:49 UTC](https://discourse.nodered.org/t/referenceerror-suncalc-is-not-defined/5540/6 "2018-12-06T19:49:18Z")

</div>

How did you use it in your function node?

Note: [https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/referenceerror-suncalc-is-not-defined/5540)._
