# Dependencies between Components

**URL:** <https://forum.8thwall.com/t/dependencies-between-components/2669>\
**Category:** Technical Support\
**Tags:** FAQ\
**Created:** [September 5, 2024, 3:39pm UTC](https://forum.8thwall.com/t/dependencies-between-components/2669 "2024-09-05T15:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flavio\_Pellanda](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@Flavio\_Pellanda](https://forum.8thwall.com/u/Flavio_Pellanda)\
**Post date:** [September 5, 2024, 3:39pm UTC](https://forum.8thwall.com/t/dependencies-between-components/2669/1 "2024-09-05T15:39:33Z")

</div>

Hi

I try to have multiple components in multiple files that have dependencies:

A.ts:

```ts
export const A = esc.registerComponent{name: "A"...

```

B.ts

```ts
import {A} from '.a.ts'
export const B = esc.registerComponent{name: "B: ...

    ... some code
    if (A.has(someEid)) {
    ....
    }

```

But as soon a I export something from A.ts or B.ts I get an error message that the component cannot be found? (event withou any import in the other file) “Error: No attribute registered with name: A” And it does not matter if I do a default export or a named export.

How am I supposed to access components between files in the new Studio?

---

<div class="post-metadata">

**Author:** ![christoph\_nia](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/christoph_nia/32/83_2.png) [@christoph\_nia](https://forum.8thwall.com/u/christoph_nia)\
**Post date:** [September 5, 2024, 9:38pm UTC](https://forum.8thwall.com/t/dependencies-between-components/2669/2 "2024-09-05T21:38:51Z")

</div>

`import {A} from './a'` should work provided the two files are in the same folder.

`No attribute registered with name: A` seems like it’s coming from somewhere else that’s using the `ecs.getAttribute` function.
