# Importing a typescript module

**URL:** <https://talk.observablehq.com/t/importing-a-typescript-module/526>\
**Category:** Uncategorized\
**Created:** [March 20, 2018, 3:34am UTC](https://talk.observablehq.com/t/importing-a-typescript-module/526 "2018-03-20T03:34:25Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jeremydouglass/32/672_2.png) [@jeremydouglass](https://talk.observablehq.com/u/jeremydouglass)\
**Post date:** [May 29, 2018, 7:46pm UTC](https://talk.observablehq.com/t/importing-a-typescript-module/526/10 "2018-05-29T19:46:14Z")

</div>

> [@tom](#):
>
> whether that style of bundled module will crop up in the future.

I am trying to require the [p5.dom library](https://p5js.org/reference/#/libraries/p5.dom) for p5.js – e.g. using the version on cloudflare. I tried the [module require debugger](https://beta.observablehq.com/@tmcw/module-require-debugger) notebook, which suggests:

```
require('p5@0.6.1/lib/addons/p5.dom.js')

```

…but this results in `undefined` in the Observable notebook. Adding `.catch() => .catch(() => window.p5dom` also results in `undefined`.

@tom – does this look the same as the `libR.js` issue above, or is this a different issue?

---

_[View the full topic](https://talk.observablehq.com/t/importing-a-typescript-module/526)._
