Im trying to use the roblox require function in a script but get the error "TypeError: unkown require" in vs code with selene. But in roblox studio it works wonders. Is there a way to make selene understand what modules/folders exist in my project? Bit of a newbie to lua and roblox so it might even understand what im trying to ask.
#Trying to learn vscode and rojo but running into a problem
1 messages · Page 1 of 1 (latest)
?
so the "path" game.ReplicatedStorage.Packages.Networker.client works without errors in roblox studio. But in vscode i get a error, that it doesnt recognize my folders and or the client ModuleScript
thank you, do i need a addons for the .luaurc to work?
Ok. Cause i was watching a tutorial of a guy setting up rojo and vscode, but he was able to require basically anything he wanted without having to setup paths. There is no rokit addon that might automatically do this?
this is my file structure
I just totally lied to you. This is for building Luau only projects
Rojo's default.project.json will help resolve Roblox paths to the files in your project
You can continue to use aliases, but you'll have to write in the Roblox paths
Relative pathing still works, but again, must be written in Roblox paths
cause in default.project.json i have defined Packages, do i also need to define the path in sourcemap?
** You are now Level 1! **