# How to require external libraries in a component helper file?

**URL:** https://meta.discourse.org/t/how-to-require-external-libraries-in-a-component-helper-file/195392
**Category:** Development
**Created:** [June 29, 2021, 6:25pm UTC](https://meta.discourse.org/t/how-to-require-external-libraries-in-a-component-helper-file/195392 "2021-06-29T18:25:33Z")
**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: [June 29, 2021, 6:44pm UTC](https://meta.discourse.org/t/how-to-require-external-libraries-in-a-component-helper-file/195392/2 "2021-06-29T18:44:34Z")

</div>

You can use the approach I use in [GitHub - merefield/discourse-tc-tag-cloud: A Discourse Theme Component that displays a tag cloud above the tag lists on the tags page · GitHub](https://github.com/merefield/discourse-tc-tag-cloud)

> <https://github.com/merefield/discourse-tc-tag-cloud/blob/91943c7fdc032f640a7a97aa007fd2a3f34ae5fd/javascripts/discourse/components/tagcloudvis.js.es6#L8>

Note the assets are registered here:

> <https://github.com/merefield/discourse-tc-tag-cloud/blob/91943c7fdc032f640a7a97aa007fd2a3f34ae5fd/about.json#L6>

And sit in the assets folder.

---

_[View the full topic](https://meta.discourse.org/t/how-to-require-external-libraries-in-a-component-helper-file/195392)._
