---
title: How to Search for Code Written with Circular References
slug: world-sdk-guide/how-to-search-for-code-written-with-circular-references
docTags: 
createdAt: 2024-09-02T08:34:13.136Z
---

If two or more modules or objects refer to each other directly or indirectly causing issues, you can search for circular references using the following method:



**1) Run the Terminal in VSCode**

Open the terminal in VSCode from the root directory of your project.

- Select Menu > Terminal > New Terminal. (Shortcut: Ctrl + Shift + ￦)



**2) Install Circular Reference Checker**

Enter the following command in the Terminal window of VSCode to install the package:

:::CodeblockTabs
Circular References

```typescript
npm install -g quick-import-cycle-checker
```
:::



**3) Execute Circular Reference Check**

Once the installation is complete, you can use the following command in the Terminal window of VSCode to check for circular references:

:::CodeblockTabs
Circular References

```typescript
npx quick-import-cycle-checker
```
:::

This command will scan the project's modules for circular references and, if any are found, it will output detailed information in the terminal.

![](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-uDWZE58kPvjO88ZDZbYQY-20240904-102418.png)

If you run the command without the circular reference checker being installed, you will see an installation prompt as shown below. Press the Y key to proceed with the installation.

![](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-gJVFEWLdu-exW3FXztH4v-20240904-102418.png)



**4) Modify the Code**

If circular references are found in the scan, modify the related code in the script to resolve the circular references.

**Repeat the circular reference search command and continue to modify the code until no further results are found.**
