All Questions
Tagged with node.js javascript
177,101 questions
0
votes
0
answers
18
views
Firebase functions V2: Package subpath './database' is not defined by "exports" in /workspace/node_modules/firebase-functions/package.json
I am trying to send notification to device when I receive message in chat in my app. At the moment I just want to read snapshot contents, but when trying to deploy, I am hit with an error: Package ...
-5
votes
0
answers
21
views
MEU FRONT END ESTÁ DANDO ERRO E EU PRECISO ENTREGAR UM TESTE POR FAVOR ME AJUDE [closed]
Eu tenho até dia 29/04 para entregar este teste rodando e abrindo a pagina, n sei oq fazer, estou apredendo node e não consigo resolver este problema.
[enter image description here](https:/[[enter ...
-3
votes
1
answer
24
views
Why is my DELETE Blog API returning "Blog not found" when I try to delete a blog with a reference to a User?
I am working on a REST API where I am trying to delete a blog document from my MongoDB database. Everything works fine, and the blog is deleted when I don't have a reference to a User in the blog ...
-7
votes
0
answers
45
views
i can't build a turbo-repo chatgpt enable to solve my problem [closed]
i have used commands like
npx create-turbo@latest
Rename the two Next apps to
user-app
merchant-app
Add tailwind to it.
cd apps/user-app
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss ...
1
vote
1
answer
24
views
Interception xhr requests after pressing the load more button with puppeteer
Initially two json files arrive on the site - the rest arrive after clicking the ‘load more’ button. I'm trying to intercept all requests. The example shows how I am waiting for the button to appear ...
-1
votes
0
answers
24
views
tsconfig/linter to prevent named import of CJS module from ESM
To import a CJS module from an ESM module, the "default import" has to be used, while named imports cause an error when ran.
// Errors as lodash is CJS module.
import { get } from 'lodash';
...
-2
votes
0
answers
33
views
Keeping Modal open with AJAX background data refresh [closed]
I have a Node.js Express app using DataTables, and in those DataTables, I have child rows with bootstrap 5 modals. The modals open just fine; however, I am refreshing the data in the background every ...
0
votes
0
answers
29
views
install ENTCORE [closed]
I'm currently installing ENT open ent, (entcore, springboard, infra-front etc). I'm having some installation problems, particularly with the widgets and timeline. If any of you have already installed ...
-2
votes
1
answer
47
views
discord.js: the bot isnt loading my function (login) even tho i made it very clear in the code what to do ( typeError ). how to fix this? [duplicate]
I tried so many different approaches, both in the index.js file as well as in login.js and loginAluno.js, but the login function always shows errors, and I get the following error:
TypeError: ...
0
votes
1
answer
43
views
Generating ICS: How to create a 2-day event with the same start time but different end times?
I'm trying to create a two-day event where both days start at the same time but end at different times. Here are the event details:
Day 1: (Saturday) February 22, 2025, from 2:30 PM to 6:30 PM
Day 2: (...
-4
votes
0
answers
41
views
ExpressJS API integration [closed]
I've been trying to build an API integrated section for my website since it needs a news section. I have a small amount currently built but am struggling with getting it to work. This is through using ...
-3
votes
0
answers
50
views
Unit test for the front end component [closed]
I am writing unit test of a front end project, I do have a file which has the below code, tried all scenarios and have not manage to cover below code on the test.
const handleOpenEndedBranching =(e)=...
0
votes
0
answers
52
views
How can i extract Failed Selector URLs from Cypress Tests [closed]
I'm working on a self-healing project for Cypress, and I need to extract URLs that have failed selectors from my test files (.cy.js). My goal is to automatically log these URLs into a file for further ...
1
vote
1
answer
32
views
Node.js AsyncLocalStorage Official Example: Actual Execution Order Differs from Documentation
Problem Description
While learning about Node.js AsyncLocalStorage, I've encountered an interesting discrepancy. The official Node.js documentation provides an example with an expected output order, ...
-2
votes
0
answers
68
views
How to render <App/> on nodejs server side? [closed]
Given this server.ts code:
import 'ignore-styles';
import register from '@babel/register';
import express from "express";
import fs from "fs";
import path from "path";
...