# issue requiring nebula.gl

**URL:** <https://talk.observablehq.com/t/issue-requiring-nebula-gl/4153>\
**Category:** Help\
**Created:** [November 16, 2020, 4:52am UTC](https://talk.observablehq.com/t/issue-requiring-nebula-gl/4153 "2020-11-16T04:52:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cornhundred](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cornhundred/32/1705_2.png) [@cornhundred](https://talk.observablehq.com/u/cornhundred)\
**Post date:** [November 16, 2020, 4:52am UTC](https://talk.observablehq.com/t/issue-requiring-nebula-gl/4153/1 "2020-11-16T04:52:37Z")

</div>

Hi, I’m having an issue requiring the library nebula.gl in the notebook

> **[Nebula.gl and Deck.gl Selection Example](https://observablehq.com/@cornhundred/lasso-selection)**
>
> Nebula.gl and Deck.gl Selection Example This notebook was originally forked from https://observablehq.com/@pessimistress/deck-gl-playground I'm working on trying to get nebula.gl to work in Observable using...

I tried following the require example using the [https://observablehq.com/@observablehq/module-require-debugger](https://observablehq.com/@observablehq/module-require-debugger) notebook but the output is undefined.

```auto
nebula = require('nebula.gl@0.19.2/dist/index.js').catch(() => window["_style"])

nebula = undefined

```

I want to use nebula.gl to select a polygon region from a deck.gl visualization - see example [https://codesandbox.io/s/deckgl-and-nebulagl-editablegeojsonlayer-no-react-forked-7fcst?file=/app.js](https://codesandbox.io/s/deckgl-and-nebulagl-editablegeojsonlayer-no-react-forked-7fcst?file=/app.js)

---

<div class="post-metadata">

**Author:** ![severo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/severo/32/786_2.png) [@severo](https://talk.observablehq.com/u/severo)\
**Post date:** [November 16, 2020, 7:41am UTC](https://talk.observablehq.com/t/issue-requiring-nebula-gl/4153/2 "2020-11-16T07:41:29Z")

</div>

Sometimes you can use bundle.run to get a version that works in browsers, but it seems to return an error:

```auto
require('https://bundle.run/@nebula.gl/layers@0.21.1')

```

gives

> Error: deck.gl - multiple versions detected: 8.0.17 vs 8.3.7

---

<div class="post-metadata">

**Author:** ![cornhundred](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cornhundred/32/1705_2.png) [@cornhundred](https://talk.observablehq.com/u/cornhundred)\
**Post date:** [November 16, 2020, 3:50pm UTC](https://talk.observablehq.com/t/issue-requiring-nebula-gl/4153/3 "2020-11-16T15:50:56Z")

</div>

Thanks @severo, I edited the notebook somewhat to have a single deck import but now I’m seeing the similar error

```auto
deck = Error: luma.gl - multiple VERSIONs detected: 8.3.1 vs 8.2.0

```

---

<div class="post-metadata">

**Author:** ![cornhundred](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cornhundred/32/1705_2.png) [@cornhundred](https://talk.observablehq.com/u/cornhundred)\
**Post date:** [November 16, 2020, 4:34pm UTC](https://talk.observablehq.com/t/issue-requiring-nebula-gl/4153/4 "2020-11-16T16:34:47Z")

</div>

I was able to import nebula.gl by switching my deck.gl version to 8.3.7

> **[Nebula.gl and Deck.gl Selection Example](https://observablehq.com/@cornhundred/lasso-selection)**
>
> Nebula.gl and Deck.gl Selection Example This notebook was originally forked from https://observablehq.com/@pessimistress/deck-gl-playground I'm trying to get this polygon selection example...

Thanks @severo.

However, I’m now running to an issue getting the nebula layer to work with deck.gl, but I’ll raise this issue elsewhere.
