-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running nodemon #29
Comments
@abhijithabhiakl This project uses firebase so you will need to create a firebase project and add the firebase json file to the project inorder for it to work properly. |
Hey did you fix this error? |
My terminal is throwing out some random chunk of error, I don't quite understand it, so can anyone help fix it ? here it is:
┌──(skittlesjnr㉿kalisk)-[~/Documents/KTUAPI/api]
└─$ npm run dev
[nodemon] 1.19.4
[nodemon] to restart at any time, enter
rs
[nodemon] watching dir(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting
babel-node src/index.js
node:internal/modules/cjs/loader:1042
throw err;
^
Error: Cannot find module '../../config/firebase.json'
Require stack:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
at Function.Module._load (node:internal/modules/cjs/loader:885:27)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/core/firebase.js:4:24)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at loader (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions. [as .js] (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:154:7)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Function.Module._load (node:internal/modules/cjs/loader:922:12)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/utils/notifications.js:2:1)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at loader (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions. [as .js] (/home/skittlesjnr/Documents/KTUAPI/api/node_modules/babel-register/lib/node.js:154:7)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Function.Module._load (node:internal/modules/cjs/loader:922:12)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/home/skittlesjnr/Documents/KTUAPI/api/src/utils/redis.js:3:1)
at Module._compile (node:internal/modules/cjs/loader:1218:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/skittlesjnr/Documents/KTUAPI/api/src/core/firebase.js',
'/home/skittlesjnr/Documents/KTUAPI/api/src/utils/notifications.js',
'/home/skittlesjnr/Documents/KTUAPI/api/src/utils/redis.js',
'/home/skittlesjnr/Documents/KTUAPI/api/src/controllers/studentDetails.js',
'/home/skittlesjnr/Documents/KTUAPI/api/src/routes/index.js',
'/home/skittlesjnr/Documents/KTUAPI/api/src/core/app.js',
'/home/skittlesjnr/Documents/KTUAPI/api/src/index.js'
]
}
Node.js v18.13.0
[nodemon] app crashed - waiting for file changes before starting...
The text was updated successfully, but these errors were encountered: