Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [node.js]

Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client as well as on the server side and therefore benefit from the re-usability of code and the lack of context switching.

node.js
181,849 questions with no upvoted or accepted answers
33 votes
2 answers
5k views

Unable to import webpack-bundled UMD library as an ES6 import

I've authored a javascript library using Webpack. The entrypoint someClass.js looks like this: import x from './x' /* several more imports here */ class SomeClass {} export default SomeClass; My ...
StillFiles2's user avatar
30 votes
2 answers
4k views

Firebase Cloud Functions Error: connect ECONNREFUSED

I am trying to create a Kik Messenger bot according to their API using Firebase Cloud Functions. I am using Blaze Plan. I am trying to reply to a message that my bot received. I can receive messages ...
bennygenel's user avatar
  • 24.5k
29 votes
1 answer
676 views

StriderCD global post install fails on bower access to $HOME/.config $HOME/.cache

I am trying to work out the best way to install StriderCD globally. I installed node and npm via the global-enabled fork of nvm, and all paths are working fine for other builds, but none of them ...
notbrain's user avatar
  • 3,386
28 votes
3 answers
3k views

launch dedicated DevTools for Node.js from command-line

I wondering how to launch "Open dedicated DevTools for Node" directly from the (windows or linux) command-line, without using chrome://inspect url then Open dedicated DevTools for Node button ? My ...
Franck Freiburger's user avatar
23 votes
3 answers
2k views

How do I do populate on mongoosastic?

My goal is to populate certain fields in mongoosastic search, but if I do the following codes, it will always return Here's the code var mongoose = require('mongoose'); var Category = require('./...
Jack Moscovi's user avatar
  • 2,233
20 votes
1 answer
3k views

PNPM linking with standalone NextJS build

I'm trying to create production Dockerfile using NextJS standalone mode and PNPM. In next.config.js i have output configuration: experimental: { outputStandalone: true, outputFileTracingRoot:...
Dooomel's user avatar
  • 586
19 votes
2 answers
694 views

How to start a new connection with CosmoDB graph database using gremlin on version ^3

I am trying to create a new gremlin client in node js, but I cannot find any documentation how to set up the connection with both a URL and a primary key (as generated in Azure CosmosDB). Examples ...
Michal Paszkiewicz's user avatar
19 votes
2 answers
2k views

Query based on included data in Sequelize

I have a table for people with a self-association so people can have parents/children/cousins/etc. const People = sequelize.define('People', { gender: Sequelize.STRING, name: Sequelize.STRING, ...
wazzaday's user avatar
  • 9,644
18 votes
1 answer
3k views

Two versions of icu4c installed by Homebrew

Whenever I attempted to run npm --version or node --version on my Mac, I was getting the following error: $> node --version dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib ...
stevendesu's user avatar
  • 16.5k
18 votes
1 answer
22k views

eslint ignores all files when adding specific file to ignorePatterns

I'm trying to implement eslint in a Next.js project but I don't want next.config.js to be linted. I tried adding ignorePatterns to .eslintrc.json, adding a .eslintignore file and adding eslintIgnore ...
Thiago Loddi's user avatar
  • 2,310
18 votes
1 answer
5k views

Google Page Speed Insights - Basic Authentication

I am current using npm psi to do psi tests against a site which is publicly accessible (except with basic authentication). All of my attempts to use the username:password@ convention have failed me ...
jshthornton's user avatar
  • 1,304
17 votes
1 answer
10k views

Disabling GPU Acceleration in Cypress

I'm running Cypress in a Docker container in Jenkins. This is my Dockerfile: #Base image taken from:https://github.com/cypress-io/cypress-docker-images FROM cypress/browsers:node14.17.0-chrome91-ff89 #...
Tommy VDFN's user avatar
16 votes
1 answer
6k views

How to debug NextJS during the build phase

My nextJS app have a path with 50k plus pages. Running with npm run dev it works fine, but during build it gives me an error TypeError: Cannot read property 'page' of undefined at exportPaths.filter....
Amantel's user avatar
  • 739
16 votes
0 answers
3k views

How to set up Node.js server with cookie based KeyCloak authentication - getting infinite redirects now

I'm setting up a Node.js server that is protected by KeyCloak. This is the first time I'm using KeyCloak, I'm experimenting with various use-cases. I successfully implemented the scenario where I use ...
takacsmark's user avatar
  • 4,351
16 votes
1 answer
2k views

Graphql Yoga Playground with Lambda - "Server cannot be reached"

I'm in the process of setting a graphql endpoint with servlerless/ lambda and am receiving an error when trying to connect to the graphql playground that comes with graphql-yoga. When I go to my route ...
red house 87's user avatar
  • 2,285

15 30 50 per page
1
2 3 4 5
12124