Category "node.js"

Proper way to export dynamic module

I have a NestJS application with the CoreModule which exports an collection of the core services to all other modules. In core module i have dynamic module regi

Nodejs executing microvm with Vagrant : terminal simulation

Introduction I am currently working on a Nodejs project to run a simulation of an Ubuntu terminal in a secure way. To do this, I intend to use Vagrant in the No

Acessing data from localhost on Alexa developer console

I am trying to acess data from my localhost server on raspberry pi with my alexa. This works when I run the code in visual studio code with the local debugger,

Javascript Remove Negative Decimal Value From String

I am trying to remove the negative and positive decimal value from the string following script remove the positive decimal value from the string however negativ

What is regex for square bracket character in javascript [closed]

Can anyone tell me how to make regex for square brackets ( [ ] ) in JavaScript?

Frontend fetch not working but backend shows the API

I have been trying to fetch the user's data from the backend to set it to the state in the front-end of my application. I am using MERN stack. I am on my learni

Cannot find module '/home/container/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node'

Everything's running perfectly throught cmd on my pc but when i host it on my host servers i have this error: `:/home/container$ npm start knexfile.js Starting

Browser crashes on auto-scroll puppeteer

I have a scraper that scrapes the video urls of all the posts of a user. I have implemented auto-scroll so that all the videos are loaded for me to scrape. I te

Jest Runner won't allow me to debug tests just skips test each time

skipped test When pressing debug on the test it just skips it. It works for other tests in different repositories that I have, but for this specific one it does

Node JS Using AND or OR operator - Fetching data

Good Day! I need help on the below issue: Goal: is to filter data depending on the department content. What I'm trying to do is to fetch data from MongoDB based

NodeJS - TypeError: Busboy is not a constructor

So, something happened a couple of days ago and a project of mine started showing the following error: TypeError: Busboy is not a constructor at /app/node_modul

Error while creating rest API in postman 500

I'm building an API using nodejs for the web I already have a database and the GET request works but when I try POST it gives me This errorError This is the cod

Cors policy twitch api

When im going to my server (http://localhost/auth/twitch) it works fine. I am redirected to the twitch login, but when i use my react app calling with axios my

Protractor Mac installation Issue - protractor --version zsh: command not found: protractor

I'm interested in using Protractor for e2e testing. But running into some possible installation issues on a Mac(macOS Catalina). The main problem I'm having is

Using an empty string in path fails

In my node API i have some function that updates the email address Array of either a contact or a farm, its the same concept but the difference is where the arr

How to fix Cannot find module '@vscode/sqlite3' when running npx knex migrate:make test

When npx knex migrate:make executed this error pop up Using environment: development Knex: run $ npm install sqlite3 --save Cannot find module '@vscode/sqlite3'

How to add Azure SQL server to Grid.js table data attribute

I've been struggling for a couple of days trying to link my Grid.js to Azure SQL database. My SQL database query function returns the data, but I can't link it

Class validator: Use class member as decorator argument

I have a signup DTO where one member is dependent of another. The IsPostalCode on zip needs to know the countryCode/locale, which is one of the other class memb

Jest won't accept top-level-awaits with NodeJS16 & TypeScript

I'm trying to update my NodeJS12 & TypeScript app to Node16, one if the reasons is the need to use top-level-awaits. The code compiles correctly after the u

Mutex timeout in javscript does'nt show on what line in code the error occurs

I use Node v16.14.2 and run this program in the command prompt. I have a little problem with using Mutex in javascript. The Mutex itself do work but sometimes i