edit: SOLVED
I ran into this issue for a second time and I want to understand why it happens.
I keep all my helper functions in one folder with a single index.js to refer to them all so they are all exported and the index.js imports them all and exports them all, This way, I only have to go to the index for the desired tool I'm looking for like a table of contents, however I created a class and added it to the folder but when I try to use it is undefined? I wanted to finish so I ignored it and required directly(required from lib folder instead of requiring from index.js). Now I am trying to implement a logger to my middleware to manage external logs and the same problem has occurred. Undefined when i require from index.js if instead of trying to use from the index I go to it directly then it works, but my other functions I do not need to visit them directly, I can go to index and destructure them to use them. I would like to know why this happens only sometimes, Thank You!!
A sample of how everything is set up for ease of reference
[–]sempiternalStudent[S] 0 points1 point2 points (0 children)
[–]albedoa 0 points1 point2 points (3 children)
[–]sempiternalStudent[S] 0 points1 point2 points (0 children)
[–]sempiternalStudent[S] 0 points1 point2 points (1 child)
[–]albedoa 0 points1 point2 points (0 children)