This line works just fine and there’s a check right before it to ensure module is a ModuleScript, so there shouldn’t be any problems. However, I get a type error Unknown require: unsupported path.
How can I get rid of this presumably incorrect type error, without completely disabling strict typing? I tried something like
--!nocheck
modules[module.Name] = require(module)
but that won’t work because there’s lines above it, and comment directives can only exist at the top of the file. Essentially, I’d like to remove strict typing for this one line only.