[nodemon] starting node server.js
node:internal/process/esm_loader:97
internalBinding(‘errors’).triggerUncaughtException(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module ‘/home/maitreya_10/CODE/WAD/discord-yt/studybud/server/mongoData’ imported from /home/maitreya_10/CODE/WAD/discord-yt/studybud/server/server.js
Did you mean to import ../mongoData.js?
at new NodeError (node:internal/errors:399:5)
at finalizeResolution (node:internal/modules/esm/resolve:326:11)
at moduleResolve (node:internal/modules/esm/resolve:945:10)
at defaultResolve (node:internal/modules/esm/resolve:1153:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:77:40)
at link (node:internal/modules/esm/module_job:76:36) {
code: ‘ERR_MODULE_NOT_FOUND’
}
Node.js v18.15.0
[nodemon] app crashed – waiting for file changes before starting…
I’m trying to test the api endpoints for my application but i’m getting this error, anyone has any idea about it?