osyrisrblx / t

A Runtime Typechecker for Roblox
MIT License
210 stars 39 forks source link

TypeScript package does not correctly require the right ModuleScript #89

Closed gamenew09 closed 3 years ago

gamenew09 commented 3 years ago

When I tried importing the @rbxts/t package inside of one of my TypeScript files I got the error: t is not a valid member of Folder "user_modelconfigurator.rbxmx.ModelConfigurator.include.node_modules.t.lib"

Which lead me to the import line in the generated lua file from roblox-ts:

local t = TS.import(script, TS.getModule(script, "t").lib.t).t

When I look at the hierarchy of folders generated by roblox-ts I didn't see any mention of t, just the ts ModuleScript specific to @rbxts/t.

gamenew09 commented 3 years ago

Huh, it seemed to have just fixed itself. I didn't update npm packages.