Open abhijithabhiakl opened 1 year ago
@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.
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
ktu@1.0.0 dev nodemon src/index.js --exec babel-node
[nodemon] 1.19.4 [nodemon] to restart at any time, enter
rs
[nodemon] watching dir(s): . [nodemon] watching extensions: js,mjs,json [nodemon] startingbabel-node src/index.js
node:internal/modules/cjs/loader:1042 throw err; ^Error: Cannot find module '../../config/firebase.json' Require stack:
- /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 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...
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] startingbabel-node src/index.js
node:internal/modules/cjs/loader:1042 throw err; ^Error: Cannot find module '../../config/firebase.json' Require stack:
Node.js v18.13.0 [nodemon] app crashed - waiting for file changes before starting...