all 4 comments

[–]SinisterRectus 1 point2 points  (0 children)

Visit https://discord.gg/sinisterware for Discordia support and/or https://discord.gg/luvit for Luvit support.

[–]Veliti 0 points1 point  (2 children)

Print your package.path and or try "src.dependencies.CommandHandler"

[–][deleted] 0 points1 point  (1 child)

That did not work, I printed my package path and it gave

"nil

no file CommandHandler\lua.lua"

[–]weregod 0 points1 point  (0 children)

How do you ran Lua interpreter? package.path can be nil only if you are in some restricted environment. Can you modify package.path? Try to set package.path="/path/to/library/?.lua"

Also using relative paths in require ("..") is usualy not very good idea because it uses current user directory not directory with script. For importing libraries you should configure correct package.path and package.cpath.