# Invalid module

**URL:** <https://talk.observablehq.com/t/invalid-module/8865>\
**Category:** Help\
**Created:** [February 27, 2024, 6:26pm UTC](https://talk.observablehq.com/t/invalid-module/8865 "2024-02-27T18:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smpa01](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/smpa01/32/5352_2.png) [@smpa01](https://talk.observablehq.com/u/smpa01)\
**Post date:** [February 27, 2024, 6:26pm UTC](https://talk.observablehq.com/t/invalid-module/8865/1 "2024-02-27T18:26:34Z")

</div>

Is there a reason why the following does not work

![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/7/7923f1e388a217421ba26d6221e11b49fb994115.png)

---

<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:** [February 27, 2024, 7:31pm UTC](https://talk.observablehq.com/t/invalid-module/8865/2 "2024-02-27T19:31:50Z")

</div>

`require()` in Observable notebooks is [d3-require](https://github.com/d3/d3-require), a loader for UMD/AMD modules. The `require()` you see in the svgpath readme is Node’s native require() for CommonJS modules.

Luckily you can import the package as ES module:

```auto
svgpath = (await import('https://esm.run/svgpath')).default

```
