# Script error 9000: Linker task graph contains a cycle

**URL:** <https://forums.unrealengine.com/t/script-error-9000-linker-task-graph-contains-a-cycle/2170446>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, editor, question, fortnite\
**Created:** [December 4, 2024, 3:24pm UTC](https://forums.unrealengine.com/t/script-error-9000-linker-task-graph-contains-a-cycle/2170446 "2024-12-04T15:24:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Habub12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Habub12](https://forums.unrealengine.com/u/Habub12)\
**Post date:** [December 4, 2024, 3:24pm UTC](https://forums.unrealengine.com/t/script-error-9000-linker-task-graph-contains-a-cycle/2170446/1 "2024-12-04T15:24:59Z")

</div>

How to solve this problem?  
I have several Verse devices and they are subscribed to each other by @editable. Previously this was not a problem, but now patiently such an error appears.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/7/1a715cfdc9edf3a4d987b64ee3963d312dce311d.png)

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [December 4, 2024, 4:14pm UTC](https://forums.unrealengine.com/t/script-error-9000-linker-task-graph-contains-a-cycle/2170446/2 "2024-12-04T16:14:27Z")

</div>

You aren’t allowed to reference devices in a cycle unfortunately, I understand how this made device interoperation kinda annoying, I believe you can workaround this by making the device refernce an optional and it should fix the error idk if that’s a good idea to do though because it might not be stable.

---

<div class="post-metadata">

**Author:** ![ottothe2nd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ottothe2nd](https://forums.unrealengine.com/u/ottothe2nd)\
**Post date:** [February 18, 2025, 4:00am UTC](https://forums.unrealengine.com/t/script-error-9000-linker-task-graph-contains-a-cycle/2170446/3 "2025-02-18T04:00:02Z")

</div>

how do you make it optional?

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 18, 2025, 5:23am UTC](https://forums.unrealengine.com/t/script-error-9000-linker-task-graph-contains-a-cycle/2170446/4 "2025-02-18T05:23:00Z")

</div>

instead of  
`MyVariable : my_device = my_device{}`

It becomes  
`MyVariable : ?my_device = option{my_device{}}`

But you will need to do `if(MyDevice:=MyVariable?):` before using it in a function since to use it it must not be false.
