Comments (2)
@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.
from api.
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
[email protected] 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?
from api.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.