Tag Archives: defined

How do I solve Configuration property “jwt” and “DB” is not defined error – Node Dev Feed

How do I solve Configuration property “jwt” and “DB” is not defined error I am trying to push my web application (MERN stack) to Heroku but I keep getting this error enter image description here What I have tried in index.js if (!config.get(“jwtPrivateKey”)) { throw new Error(‘FATAL ERROR!!: jwtPrivateKey is not defined’) } console.log(config.get(“DB”)) console.log(config.get(“jwtPrivateKey”))…

Read More

Prevent “window is not defined” Errors With a useClientSide() Custom Hook – React Dev Feed

Prevent “window is not defined” Errors With a useClientSide() Custom Hook TLDR: There is no window object on the server – trying to access the window object will thrown an error in server side rendered code, and in Node.js based development environments You can access window in a useEffect hook, as uesEffect only runs on…

Read More

Learning Python- Intermediate course: Day 1, User defined functions – Developers Feed

Learning Python- Intermediate course: Day 1, User defined functions Welcome all to the first part of the intermediate course! Today we will start user defined functions. In this part, we will cover only function which do not return any value, or as per C syntax ‘void’ functions. What are user defined functions? User-defined functions are…

Read More