I was looking around the TopbarPlus module, and I encountered a warning in the code called Cylic Module Dependency
in a module script when I was requiring a different module script that’s a child of the module script I’m requiring it from.
If that sounds confusing, here’s a visual representation of what I mean:
Image of the warning:
I’m requiring the “IconController” Module script FROM the “Icon” Module Script
I have no idea what the code warning means, but there are 2 reasons I care about the warning:
- My OCD will makes me hate having any type of warnings or errors in my code
- It ruins Luau Autocomplete
Can someone explain what “cyclic module dependency” means, why it’s happening, and how I can fix it?