Sanyasirao Mopada
Sanyasirao Mopada

Reputation: 953

How to detect cyclic dependency imports in react native?

Is there any package or solution to detect cyclic dependency imports in react native?

[Or]

Can I get a stack trace for cyclic imports when running the app?

Currently the cyclic dependent imports are returning undefined values, Without telling the exact issue.

Thank you!

Upvotes: 8

Views: 3311

Answers (1)

Manikanta C.S.E
Manikanta C.S.E

Reputation: 417

one simple solution is using madge package to check the circular dependencies in any javascript project.

run the below command in project folder

madge --circular --extensions js app/

Upvotes: 11

Related Questions