'NODE JS - Can you tell me what I am doing wrong with the directory order?
Solution 1:[1]
if you are importing app.js file its a good idea to add .js at the end just like this
var app = require('../server/config/app.js')
Solution 2:[2]
You are using .. when your server.js file is at the same level as the server directory. Use one . and it should work
const app = require('./server/config/app');
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Manu Jo Varghese |
| Solution 2 | Pytth |

