# How to export a default export from a module

**URL:** <https://forum.8thwall.com/t/how-to-export-a-default-export-from-a-module/188>\
**Category:** Technical Support\
**Tags:** FAQ, modules\
**Created:** [February 7, 2024, 10:02pm UTC](https://forum.8thwall.com/t/how-to-export-a-default-export-from-a-module/188 "2024-02-07T22:02:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joel](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/joel/32/91_2.png) [@Joel](https://forum.8thwall.com/u/Joel)\
**Post date:** [February 7, 2024, 10:02pm UTC](https://forum.8thwall.com/t/how-to-export-a-default-export-from-a-module/188/1 "2024-02-07T22:02:55Z")

</div>

Building my first module is proving challenging—I’m having trouble importing it into my project. Are default exports not supported? Instead of the expected default export, importing the module yields an object with a default property.

---

<div class="post-metadata">

**Author:** ![christoph](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/christoph/32/30_2.png) [@christoph](https://forum.8thwall.com/u/christoph)\
**Post date:** [February 7, 2024, 10:15pm UTC](https://forum.8thwall.com/t/how-to-export-a-default-export-from-a-module/188/2 "2024-02-07T22:15:28Z")

</div>

We recommend that you use only named exports from a module, like:

```ts
// in the module
export {myFunction}

// in the project
import {myFunction} from 'my-module'

```

Something to keep in mind that is that there is automatic behavior to also export the module config API, so that developers can write:

```ts
import MyModule from 'my-module'

MyModule.config.update({configValue: true})

MyModule.myFunction()

```
