471,515 questions
-1
votes
0
answers
31
views
How to stop multiple API calls when getting session data in React application?
I have the following code:
import React, { useState, useEffect } from 'react';
import { Route, Redirect } from 'react-router-dom';
import axios from 'axios'; // or fetch
const calledRef = useRef(false)...
3
votes
2
answers
35
views
Why does @mapbox/polyline decode differently than Google’s Routes API polyline decoder?
I have an encoded polyline string:
ivgfAw_}bNaAfMwBjZk@IUrCGlC?jBFjCDbAV~B^xBVdAJFbB~EpApClAzBfC~DfAbBvDxGFZvDxGtAzBpDbHp@hAbDdG|EhH@d@bEbGlDnFl\fi@lIfN~OlWvFbJ|BpDg@~x@bDdFtHfMvZ~f@hDvF|EzHhDxFxTj^...
0
votes
1
answer
29
views
Issue with Loading HeroUI Styles in Electron with Vite, Tailwind CSS v4, and React
I am developing an Electron application using React and Vite, incorporating the @heroui/react library (a UI component set) for buttons. The buttons display the click animation (ripple effect) ...
0
votes
0
answers
18
views
Why is my Node app unable to connect to database while the pod is terminating? [closed]
I have a Node.js app with graceful termination logic to stop executing jobs and close the DB connection on termination. But just before pod termination the DB queries fail due to:
Error: Connection ...
2
votes
0
answers
24
views
DuckDB bundle issue on my Parcel application
I'm working on a Parcel frontend project using DuckDB, and it runs well in the Production environment. However, in my local machine the browser displays this error.
And as I've just mentioned, this ...
0
votes
1
answer
43
views
Database schema for OAuth 2.0
I am learning about OAuth 2.0 to implement Common sign in (username and password) and also implementing Google Auth, so users doesn't need to register with username and password.
My main question is, ...
1
vote
0
answers
15
views
Plivo <Stream> + ElevenLabs Conversational AI WebSocket – no audio playback on call
I’m building a system where a Plivo outbound call streams audio in both directions to ElevenLabs Conversational AI via WebSocket.
Tech stack: Node.js + Fastify + @fastify/websocket + Plivo SDK
Goal: ...
-7
votes
0
answers
62
views
how can i connect React Native to Node.js? [closed]
im having trouble connecting my React Native to Node.js Here is my Node.js code
const express = require('express')
const cors = require('cors')
//installed npm install express cors nodemon. check in ...
0
votes
1
answer
61
views
Do Node.js 23 and higher use ES modules by default?
On all the online Node.js editors I've tried running, and they've usually been Node 20 and 21, and I've noticed the following doesn't work:
import fs from 'fs'
console.log(fs);
It gives the error:
...
0
votes
0
answers
33
views
Facebook access token giving code 190 and subcode 492 error
I am creating a facebook post scheduler. I have created an api in next js to connect facebook page and save the access token and refresh token.
initially when I save the access token and call the ...
-2
votes
0
answers
25
views
How do I call a service in a fastify controller? [closed]
I don't understand at all. In many examples, the service is either imported into the controller or contained in the parent app instance
As far as I understand, fastify has a concept of no dependencies,...
-5
votes
0
answers
69
views
Is there a functional equivalent to dotenv for a browser index.js file?
I am building a small REST API with a Postgres backend and ejs frontend (still being tested locally for now) and I've run into a problem when trying to import some of my .env variables.
At the root of ...
-3
votes
0
answers
42
views
How to tell Vite it is okay to externalize some modules?
In a monorepo project I am working on we have a shared common utility function module. The module contains some utilities that are used both in the server, but also in the client.
When installing the ...
1
vote
1
answer
50
views
Is there a way to use ISO 3166-2 subdivision codes with Intl.DisplayNames?
I'm trying to dynamically convert a large batch of country ISO codes (taken from a set of files in a directory) to the names of their respective countries using the built-in Intl library. However, the ...
0
votes
0
answers
38
views
Collaborative editing in Tiny MCE with react and node js [closed]
I am trying to implement real-time collaborative editing in TinyMCE where multiple users can edit and sync content simultaneously. However, I couldn’t find any available support or resources for this ...