Today I am encountering a very unusual error, it says that the Required module was required recursively, when I checked my code the error was coming from, There was no use of recursion there, then. why did this happen?
Error Log:
Requested module was required recursively - Client - ClassLoader:27
16:05:47.277 Stack Begin - Studio
16:05:47.277 Script 'ReplicatedStorage.Classes.ClassLoader', Line 27 - Studio - ClassLoader:27
16:05:47.277 Stack End - Studio
16:05:47.277 Requested module experienced an error while loading - Client - Script:1
16:05:47.277 Stack Begin - Studio
16:05:47.277 Script 'ReplicatedStorage.Classes.ClassLoader.Script', Line 1 - Studio - Script:1
16:05:47.277 Stack End - Studio
The Code:
for i, v in pairs(CommonClasses:GetDescendants()) do
if(v:IsA("ModuleScript")) then
local a = require(v) --Error Line
end
end