Category "node.js"

Firebird query returns Buffer

This is my first time connecting to a Firebird database from Node JS. I'm using the "node-firebird" package. Everything seems to work fine. But I get these <

Module not found: Can't resolve 'regenerator-runtime' in next js 12.1.5 with react 18 with node 16

My package.json is like "scripts": { "dev": "next dev" }, "dependencies": { "next": "^12.1.5", "react": "^18.0.0", "react-dom": "^18.0.0"

How to get data from GraphQL by filtering particular variable?

Below you can see my graphql method. From this, I can get the first data of the database that city is equal to 'London'. But I want to view all the data related

Problem with MERN app on netlify and heroku (CORS)

This my first question but I completely have noo idea what to do :/ I learn javascript technologies. I've written my MERN app where I handle login and register

Running Nodemon in Docker Container

I'm trying to run Nodemon package in a Docker Network with two services, NodeJs and MongoDB. When I run the app with npm start, nodemon works: I can connect to

Understand Node 14 and async functions

I'm having a little trouble understanding async with Node, I understand how to they work but every now and then I run into these problems that take up a lot of

Transform the mongoDB data into multiple collections and restore to new server

Problem: want to replicate mongodb data across servers but also like to alter a few attributes before to restoring. Server 1 (DB) -> Transform data of collec

I am trying to get data from my sql database to my react page, but my api returns an empty array

http://chucklets.no/getOnlineTime When I click this I can see the JSON and it looks fine. But when using fetch it API Node.js code: app.get('/getOnlineTime', (r

Ajax Post request body returns undefined

I am trying to send some data to backend using ajax post request. Like this $.ajax({ url: "/aa", dataType: 'text', type: 'post', contentType

Ajax Post request body returns undefined

I am trying to send some data to backend using ajax post request. Like this $.ajax({ url: "/aa", dataType: 'text', type: 'post', contentType

cant seem to see images on node.js server

What it looks like when the server is running on localhost:300 : What the HTML looks like itself: I am very new to this and trying to make a video game websit

Elasticsearch Node.js delete does not work

I have the following function to remove document from index: async deleteDocument (indexName: string, id: string) { const indexExist = await this.isIndexExi

UnhandledPromiseRejectionWarning: Error: Not Found While sending email from Nestjs

I am trying to develop a mail sending module in my NestJs project. when I send the mail through my local machine it works fine. But when it goes to the server (

MongoDb can't use types in jest - declares ... locally, but it is not exported

I use the mongodb library in TypeScript for a few functions (e.g. lambda functions but that should not matter). The imports look like that: import { ObjectId, D

Javascript doesn't run with both electron and canvas libraries installed

I'm trying to use electron and canvas in the same script, but it throws an error when I try. I've tried using canvas and electron separately with the same node

Acces to XMLHttpRequest at 'https://api-link/login' from origin 'http://localhost/3000' has been blocked by cors policy. (React, , firebase, JWT))

When I try to implement a secure login system in React application with firebase using JSON Web Token (JWT) I am getting this error: Acces to XMLHttpRequest at

Writing to a JSON file from an electron web app

Using electron I have made an app that can generate 6 arrays that create a frame for an animation, these arrays are going to be interpreted by another program t

Why Telegram Message object has steacker field instead photos

When I send a file to the bot, I get a message object with a staker field, on webhook Then i try to get file path by getFile method. And i get the same file pa

NodejS Read/Write Binary Data to/from file

Alright, so I have a string with binary data ("111011 10001 etc"), and I'm trying to save it to a file to them read it on another file using streams, the issue

No environment variables with Next.js TypeScript Custom server

I am currently building a next.js app for a course at uni. I want to run a script when the development server starts that performs some API calls to update the