# Error with importing and syntax errors

**URL:** <https://talk.observablehq.com/t/error-with-importing-and-syntax-errors/2894>\
**Category:** Feedback\
**Created:** [March 3, 2020, 2:56am UTC](https://talk.observablehq.com/t/error-with-importing-and-syntax-errors/2894 "2020-03-03T02:56:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![j-f1](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/j-f1/32/368_2.png) [@j-f1](https://talk.observablehq.com/u/j-f1)\
**Post date:** [March 3, 2020, 2:56am UTC](https://talk.observablehq.com/t/error-with-importing-and-syntax-errors/2894/1 "2020-03-03T02:56:07Z")

</div>

I was reading through [Visualize a data frame with Observable, in Jupyter](https://observablehq.com/@observablehq/visualize-a-data-frame-with-observable-in-jupyter?collection=@observablehq/observable-for-jupyter-users), and I noticed an error while using Safari. Specifically, it seems that the BigInt reference in [JavaScript for Python Programmers](https://observablehq.com/@ballingt/javascript-for-python-programmers), from which `compareCode` is imported, is causing the entire import to fail, which is not how I thought Observable worked. It also seems like the runtime isn’t expecting this because the error message is `TypeError: compareCode is not a function. (In 'compareCode(topLeft, topRight, '', '')', 'compareCode' is undefined)` instead of the expected `RuntimeError: compareCode is not defined` error that usually appears when a cell has a syntax error.

---

<div class="post-metadata">

**Author:** ![thomasballinger](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/thomasballinger/32/2293_2.png) [@thomasballinger](https://talk.observablehq.com/u/thomasballinger)\
**Post date:** [March 3, 2020, 2:54pm UTC](https://talk.observablehq.com/t/error-with-importing-and-syntax-errors/2894/2 "2020-03-03T14:54:17Z")

</div>

Thanks for pointing this out, I’ve fixed this notebook for now.

Although it doesn’t seem like expected behavior for notebooks that use browser features not supported to not be able to be imported, this notebook contains a BigInt literal like `123n`, so just parsing the module is making this fail in Safari.
