I am toying with typed luau, and I’ve run into an issue with the typechecker.
I am trying to create and export types in modulescripts, but when I try to access the type in the importing script, it gives me the error: “unknown type”.
Here is my code:
ModuleScript:
local module = {}
export type num = number
return module
ServerScript:
--!strict
local mod = require(script.ModuleScript)
local x: num = 5
Edit, Note: This error did not happen for one of my friends, even when using the same place file. Here is the place file: Type Error.rbxl (28.5 KB)