Questions tagged [node.js]
Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client as well as on the server side and therefore benefit from the re-usability of code and the lack of context switching.
node.js
473,319
questions
0
votes
0
answers
3
views
select-bluetooth-device not listing all devices web bluetooth api on electron
I'm using electron to list all bluetooth devices (active) around and I want to pick one and connect to it.
My question:
Now, when I'm running npm start, and press the button in the window, the console ...
0
votes
0
answers
2
views
How to automatically refresh, and reuse access tokens using nextJS app router and Auth0?
I am working with a Next.js frontend and an Express backend. I need a solution to automatically create and reuse a user’s access token until it expires. I believe there might be a way to achieve this ...
0
votes
0
answers
5
views
How to send several vars to client
I want to send to client many objects and one var, but i don't understand how to choose response that i want and create the var on client.
Server code:
var isAdmin = false;
app.get('/main', async (req,...
0
votes
0
answers
5
views
I am encountering an error when running npm install for the Moodle mobile app, version 4.4.1
I have downloaded the Moodle mobile app from GitHub, version 4.4.1. However, when I try to install the node modules using npm install, I encounter an error.
My system configuration is:
OS: Windows 10
...
0
votes
0
answers
11
views
How to generate package-lock.json back in a date?
I'm trying to modify a JS/node project which has package.json but not package-lock.json file committed. The author also does not have the original package-lock.json because newer versions has been ...
0
votes
1
answer
26
views
Compiler not complaining when importing constant that doesn't exist
I am writing a Node application using TypeScript.
When using npm run dev, the following code compiles without problems and prints undefined at runtime.
index.ts:
import { a } from './some-file.ts';
...
-3
votes
0
answers
16
views
How do i fetch data and display in MERN? [closed]
What are the steps to be followed? What are the packages that need to be installed? I am also willing to share my codes if needed.
I tried using Axios and Cors.
This is my JSX code.
import { useEffect,...
0
votes
0
answers
8
views
No autocompletion for custom local npm package on Intellij
in my nodejs project I created a local package like this in package.json and index.js
{
"name": "template-utils",
"version": "1.0.0",
"main": &...
0
votes
0
answers
18
views
Cannot read properties of undefined (reading 'exactInputSingle')
when i run this script, this error keep showing "Contract Address: 0xe592427a0aece92de3edee1f18e0157c05861564
Error in getUniswapV3Rate: TypeError: Cannot read properties of undefined (reading '...
-1
votes
0
answers
10
views
Node js express Events app problem how to resolve this
I have a problem with an exercise where I need to create a list of events, using Node.js, express, socket.io and AXIOS to handle POST and GET requests. Unfortunately, the creation of the event list ...
0
votes
0
answers
8
views
How to resolve "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error
Encountering JavaScript Heap Memory issues during the execution of our TestCafe automation test suite on our Jenkins machine running CentOS 7.7.1908 Linux.
Please find the below error message:
Last ...
0
votes
0
answers
8
views
electron communication between 2 renderers using messagePort and contextIsolation=true
I am new to electron and all the documentation on the electron docs use contextIsolation=false to enable port to be set globally on window object of the renderer.
I have 2 apps being served and loaded ...
-1
votes
1
answer
32
views
how to connect the front end with my backend page
I have created a frontend page which has got a send email section which I want to connect with the server side page which is the email page. How will I integrate the server side code with my frontend ...
0
votes
0
answers
18
views
swagger-ui-express unnecessary parameter showing
I am using swagger-ui-express with swagger-autogen with the below configurations, but the req.headers.Authorization is showing as a parameter on the routes that has verifyJWT middleware and as my ...
1
vote
0
answers
29
views
Distribution of execution between phases of I/O callbacks in node.js
The node.js event loop is still so poorly described in the documentation that we have to ask more questions..
There are two phases: pending callbacks and poll, both, as the documentation says, ...