How do I fix a circular dependency error?

42 views Asked by At

So this is the error I am getting:

Workspace must be a tree structure and pass integrity checks
##[error]   ✖ Package dependency cycles audit
##[error]   
##[error] Detected 1 new dependency cycles between workspace packages:

Here is the layout of the files that are relevant to this error.

packages
  components
     my-component1
        package.json (references my-component2 and data)
     my-component2
        index.ts
     my-component3
        package.json (references data)
  data
     package.json (references my-component2)

Do I have to refactor the structure of my project to fix this issue? Does anyone see anything wrong with my project structure?

0

There are 0 answers