Hey I can call in any file in my project a require giving it something like /app/path/to/lib/ from anywhere and it just works, but on my Desktop programs it simply doesnt, What should I do to make it work like on Glitch?
So what I eman is it doesnt matter how deep I am in the working tree from where I call it it takes the /app path as the root of the project but at home it jsut doesnt
Now I need to require config.js in app/path/to/lib.js
On Glitch I can just do require('/app/config.js') in app/path/to/lib.js and it just works, but on my desktop I have to do ../../config.js or if you want ../../../app/config.js which sucks. I want it to have the same behaviour ond ekstop as on Glitch
I want to require a PAth.js in my root from anywhere where I have all the path names of the modules. So that I can use those paths to require the other modules like so: require(Path.sources.bot) for example. But for that I need to require Path.js first and as I said on Glitch I would have just done require('/app/Path.js'). I want exactly that behaviour and they managed to get it working so Iw ant that too
Under Paths.sources are all the paths from root directory to the JS files the project will have.
So now I can use this in every class to require a Class for example the WebManager Class like so: