Illusi_nz
(Illusionz)
April 3, 2025, 8:44pm
#1
Hey there!
So i’m trying to export a type for my update log to speed the coding process up by quite a lot. The export type is for some reason not working though…
From modulescript:
export type update = {
Title: string;
Time: number;
Icon: string;
AppearSecret: boolean;
Update: { [string]: {string} }
}
Trying to get the type from a localscript:
local config = require(game.ReplicatedStorage:WaitForChild("Modules").Configs.UpdateLog)
local function load(update: config.update)
end
Anyone knows why?
I think ever since roblox has been rolling out updates to studio some things broke. For me, I cant index some properties even after defining the type
Hi @Illusi_nz
Can you open the beta feature dialog and see new Luau type solver is enabled? If so, can you try to disable it?
Thank you!
Illusi_nz
(Illusionz)
April 4, 2025, 1:40pm
#4
Ya it’s not enabled
Not sure if any other beta feature is causing it… I didn’t add any beta features since 2024 so I don’t think it’s a beta feature
Illusi_nz
(Illusionz)
April 4, 2025, 3:57pm
#5
colors are fixed now but I still can’t access it from my localscript
Can you check Incremental typechecking beta feature is enabled or not? If yes, would you try to disable it?
Illusi_nz
(Illusionz)
April 4, 2025, 6:04pm
#7
Ya I have it off. Still doesn’t work
Illusi_nz
(Illusionz)
April 4, 2025, 6:05pm
#8
It doesn’t find the type in the module when I do config.update (no typecheck to finish “update” and if I write “update” and try to use it as a typechecker it doesnt work.)
Illusi_nz
(Illusionz)
April 5, 2025, 10:30pm
#9
Mb. This was an error on my end. I had 2 modules called “UpdateLog” in the folder “Configs”
system
(system)
Closed
April 19, 2025, 10:30pm
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.