Cordial greetings, I hope you are well.
I would like some guidance on how I can import a module that is in another folder.
Here is an image:
module_import
However when importing the module it generates me error:
Error: Cannot find module '../controllers/index.js'
Require stack:
I would be very grateful for your guidance.
You need to understand, how path works. You are missing one more directory skip in your path.
For more details on path, you can check here.