I use in module require other module that require this module.
So there’s recursion, I found way to fix this, use require each time when you use or get something from module, but maybe there’s other ways?
I use in module require other module that require this module.
So there’s recursion, I found way to fix this, use require each time when you use or get something from module, but maybe there’s other ways?
To avoid recursion of modules, make sure that your module is not requiring modules until it turns into a cycle if you were to create a flowchart of how the hierarchy looks like, not through the Explorer’s script tree architecture.
Although you could try a band-aid solution that hinders the script from being required in a recursion, but I doubt that’s workable, because once you require, it won’t be the same environment every time.