# I get an error where another example doesn't

**URL:** <https://talk.observablehq.com/t/i-get-an-error-where-another-example-doesnt/8296>\
**Category:** Help\
**Created:** [September 18, 2023, 3:49pm UTC](https://talk.observablehq.com/t/i-get-an-error-where-another-example-doesnt/8296 "2023-09-18T15:49:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addem](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@addem](https://talk.observablehq.com/u/addem)\
**Post date:** [September 18, 2023, 3:49pm UTC](https://talk.observablehq.com/t/i-get-an-error-where-another-example-doesnt/8296/1 "2023-09-18T15:49:09Z")

</div>

I get an error at the following notebook, and I honestly don’t have a first guess as to the cause:

> **[Untitled](https://observablehq.com/d/041f71faeef77188)**

especially because I’m basically just trying to mimic this example:

> **[Three.js](https://observablehq.com/@observablehq/three-js)**

by reproducing it one cell at a time. So as far as I can tell, I have basically just done exactly what is done at the working notebook, except that I’m only halfway through the development.

I even tried commenting out code in the working example to make it like my notebook, and the working example continues working … so I’m super stumped. I’ve searched for spelling mistakes or small differences in the two notebooks, and maybe I’m just missing it, but I can’t see any differences (especially after editing the working example to look more like my notebook).

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [September 18, 2023, 4:03pm UTC](https://talk.observablehq.com/t/i-get-an-error-where-another-example-doesnt/8296/2 "2023-09-18T16:03:12Z")

</div>

More recent versions of Three.JS no longer support the UMD format for examples. Have a look at this thread for alternative approaches:

> [@Setting up Three.js](https://talk.observablehq.com/t/setting-up-three-js/8182):
>
> I’m trying to learn Three.js. It looks like the newest version of three only uses ES6 modules in away that the standard example by Observable doesn’t support. I tried a number of things before I found something that seems to work. Is this the correct way to get it going in ObservableHQ? THREE = { const THREE = await import('three@0.155.0/build/three.module.js?module'); const oc = await import('https://unpkg.com/three@0.155.0/examples/jsm/controls/OrbitControls.js?module'); const extendedT…
