i am trying to build a nodeJs app with express, sequelize and and sqlite. So in my root directory i have a routers directory where i store
'.js' files of express's routers. And again in root directory i have a 'db.js' file.
The problem is, when i try to require "db.js" file from the routers folder's '.js' files. it says
Error: Cannot find module 'db.js'
db = require('../db.js');