Type-checking: Unknown require: unsupported path

I’ve gotten a type checking warning (with --!strict) in a server -script, stating the following:

image

The module script required is created at runtime and does exists you can see I am checking for it existing above.

The code works without any errors, but typechecking warning is showed in the script editor. VSCode Luau extension does not report this typechecking warning.

1 Like

It can’t know that script will be created.

Maybe because you are setting the

local settingsFile = loadFolder:FindFirstChild("Settings") :: >>ModuleScript<<

Try replace or remove it or do typeof() itself