I am trying to retrieve the API_URL from AsyncStorage and make it accessible in all app, the storing and retrieving (in settings screen) is working fi ...
I am trying to retrieve the API_URL from AsyncStorage and make it accessible in all app, the storing and retrieving (in settings screen) is working fi ...
I have 2 .ts files: linked_list.ts and index.ts: My compiler compiles them into: linked_list.js: and index.js: and i get this error in m ...
I'm new to the server side of programming and I can't figure out why the terminal is telling me that the send function in express isn't defined. I've ...
I can't wrap my head around this: I have a module in my project where the module.exports is assigned a function: Now I import the function in sever ...
I'm worried about the memory increase. If I use require as below, does the class create memory every time? ...
So, using Node.js v18.3, I don't want to write new class every time in there: module.exports = {Class1, Class2, /*etc...*/}; That's why I using thi ...
The problem I'm having is that when using module.exports I'm getting the output as text. profile.js dbProfile.js dbStart.js output screensho ...
I have to export 2 type of constants and few functions like getUser. mymodule.js constants1.js consumer.js Now I also want to export functio ...
Im trying to make a shifumi game in discord.js to train my skills. So I created my command to create a game and design our mate. const { MessageEmbe ...
I have an Express.js app with a Passport-local Auth, I'm tying to implement express router to my app since it's getting really hard to debug This is ...
. Answers to this question are eligible for a +150 reputation bounty. I ...
I have nodejs app using react and nextjs. The most important pieces of the app are kept in the server file. main.js(server file) Now I need the ap ...
I am checking if a user is logged in a route called forum. I am importing it like this. The file is routes/forum.js const isloggedinimport = require( ...
I want to fetch an API, exported from module file data.js I am getting this error "err SyntaxError: Unexpected token < in JSON at position 0" The ...
In a NodeJS 14+ project main JS, how can I recursively export all .hbs files? Tried: module.exports = () => ({ partial : __dirname + "/../part ...
Hi I'm having problems with the scope of an if in a JavaScript module. Here is a mock up of my code : module.exports = { caser(nb){ if(0 === ...
i read this stackoverflow question and this one, and other internet searches. the summery of my search is module.exports and exports point to same obj ...
I'm coding for an API connection area, that's predominately graphql but needs to have some REST connections for certain things, and have equivalent to ...
I have an app that I ran this same architecture and it works no problem. I am trying to duplicate in a CRA with React 17.0.2. This is just a file that ...
Good day everyone, First off, thanks for always being such an amazing community. You all really are helping me a ton with learning and bettering my p ...