How to detect cyclic dependency imports in react native?
Asked Answered
H

1

8

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!

Herniotomy answered 9/2, 2018 at 14:24 Comment(0)
P
11

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/

Porcia answered 7/7, 2018 at 12:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.