Category "node.js"

Cookies NodeJS not getting saved

Unable to set default cookies in nodejs working fine in contact can anyone see what I am doing wrong the call from front end is handled let handleSignInS u

How to rename Angular Universal entry file to app.js and move it to the app root directory

So I have an Angular Universal SSR app which runs with node. The latest Angular and Universal versions as of 21/01/2021. My hosting company allows me to run nod

Firebase CLI v10.0.1 is incompatible with Node.js v10.24.1 Please upgrade Node.js >=12

I am facing this issue while deploying my firebase function through Git Actions Firebase CLI v10.0.1 is incompatible with Node.js v10.24.1 Please upgrade Node.j

Why is my resetAllMocks not working in jest

The second expect(fs.writeFile).toHaveBeenCalledTimes(1) (in describe('Guid for MPX') returns an error because the writeFile has been called twice. In theory, j

exceljs wrapText doesnt work on merge cell

workSheet.getCell(`B7`).alignment = { vertical: 'middle', horizontal: 'left', wrapText: true // autoHeight }; its only work on 1 cell B7 if i tried

Cannot Install Node Sass with NPM

I am having a hard time installing node-sass on npm, I have attempted to do the following steps: Cleaned the NPM Cache attempted to run "%appdata%\npm-cache" bu

Command 'Solidity: Compile Contract' resulted in an error (Cannot read properties of undefined(reading 'uri'))

Good day everyone, I am working on a lottery smart contract. I am currently done with the remix VM tests and proceeded with the unit tests with JavaScript. The

How I can simulate the __callStatic property of PHP in Node.js using Proxy?

I'm trying to create the same behavior of PHP __callStatic magic method in Node.js. I'm trying to use Proxy to do that, but I don't really know if it's the best

Winston log level filter

I am trying to use multiple transports. I also want to be able to log only one or more specific level(s) on a transport, where Winston logs from the given level

How to fix NPM EJSONParse with this package.json file?

when I try the command npm install I have this C:\Users\khaou>npm install npm ERR! code EJSONPARSE npm ERR! path C:\Users\khaou/package.json npm ERR! JSO

create-next-app' is not recognized as an internal or external command, operable program or batch file

I'm trying to install next app with npx create-next-app nextjs-blog and i keep getting this error; 'create-next-app' is not recognized as an internal or extern

Cannot find module 'prompt-sync'

I'm making Tic Tac Toe game in JavaScript needed prompt-sync to get user inputs. After I installed prompt-sync module using npm I was getting this error wheneve

laravel 8 instalation error - npm run dev throws error

I am trying to install a fresh laravel 8 project. After downloading frontend scaffolding when I try to run npm run dev it gives me an error. This problem also h

CORS issue when changing to ES6 import versus require

My Vue app has a backend with a different url to the front end. In my backend (node) I am using the cors module. My app is a standard express app and I was usin

webpack - When should I use require vs import for application.js file

I have hard time understanding the difference between "require" and "import" inside application.js file (Rails 6). I've got an excerpt of Michael Hartl's book t

Missing Access for Slash Commands

Heres the error message: PS C:\Users\User\Documents\Discord Bot> node . ready C:\Users\User\Documents\Discord Bot\node_modules\discord.js\src\rest\RequestHan

find nearest location using node js and mysql telegram bot

I was trying to do a telegram bot that finds a nearby location using node js and mysql. but after finding users coordinate(latitude,Longitude) in mycase (mylat,

Why do emails sent from nodemailer smtp elastic fall as spam?

I have an API in nodejs where I have configured nodemailer with elastic email smtp. In elastic email I have verified the domain: export const bookingWelcome = a

error network while installing create-react-app

i've tried many times when installing create react app but it always error connection, but my internet connection is really stable npx create-react-app my-app

IPFS Pinata service not accepting file

I have a code as shown below that uploads files from the browser and saves in the server, once it has been saved to the server, I want the server to connect to