Answer the question
In order to leave comments, you need to log in
Node js error when including module?
Windows system File
location
index.js
file db folder one level up contains db.js file Does
not connect db on startup
Gives error ../db
Answer the question
In order to leave comments, you need to log in
either do require("../db/db.js") or rename db.js to index.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question