# Trouble porting an example

**URL:** <https://talk.observablehq.com/t/trouble-porting-an-example/369>\
**Category:** Help\
**Created:** [February 18, 2018, 7:30pm UTC](https://talk.observablehq.com/t/trouble-porting-an-example/369 "2018-02-18T19:30:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdwfrost](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/sdwfrost/32/139_2.png) [@sdwfrost](https://talk.observablehq.com/u/sdwfrost)\
**Post date:** [February 18, 2018, 7:30pm UTC](https://talk.observablehq.com/t/trouble-porting-an-example/369/1 "2018-02-18T19:30:59Z")

</div>

Hi Folks,

I’m trying to port the biojs example here:

[http://jsbin.com/zutaqofuro/1/edit?html,js,output](http://jsbin.com/zutaqofuro/1/edit?html,js,output)

My port to a notebook throws an error (TypeError: this.\_ensureElement is not a function) when I try to render:

[https://beta.observablehq.com/@sdwfrost/displaying-multiple-sequence-alignments-with-biojs](https://beta.observablehq.com/@sdwfrost/displaying-multiple-sequence-alignments-with-biojs)

Any ideas?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tom/32/2262_2.png) [@tom](https://talk.observablehq.com/u/tom)\
**Post date:** [February 18, 2018, 9:56pm UTC](https://talk.observablehq.com/t/trouble-porting-an-example/369/2 "2018-02-18T21:56:30Z")

</div>

Sure! This is a sort of a ES6-module-gotcha scenario, made more confusing by the fact that `msa` has an export named `msa`… but that’s a trap and the fix is:

Change:

```auto
  var m = await msa.msa({el: display, seqs: seqs});

```

to

```auto
  var m = await msa.default({el: display, seqs: seqs});

```

And it all should be fine and dandy.
