Data dodania Pytanie
2017-11-24 07:11 Cloud Functions not Working »
A cloud firestore trigger has to happen whenever a new collection is to added to the cloud firestore. The cloud functions are successfully executed, ...
(0) odpowiedzi
2017-11-24 01:11 How to get module working in both Node and browser without transpiler? »
Now that Chrome supports import/export I thought we could share some code between Node.js and browser without the need for Babel, but because export c...
(0) odpowiedzi
2017-11-23 17:11 Provide custom functionality to lookup EJS view files »
When using ejs server-side with nodejs, without an application framework, is there any way provide a custom function to lookup view files? I would li...
(0) odpowiedzi
2017-11-23 15:11 Learning NodeJS & MongoDB Docker compose »
I have a NodeJS project that uses MongoDB. I would like to run this service in a Docker container, but despite the many examples I have based my learn...
(1) odpowiedzi
2017-11-23 14:11 Not able to call method within another method of the same class JS »
I am trying to call method test in method connect of the same class. But all I am getting is "Uncaught Type Error: Cannot read property 'test' of unde...
(2) odpowiedzi
2017-11-23 14:11 handling PromiseRejection in node.js »
I've just started working with javascript for the first time. From googling I have only been able to find examples of handling promise rejection throu...
(3) odpowiedzi
2017-11-23 12:11 NodeJS retrieve JSON and serve to EJS template »
my purpose is to get a JSON and serve it to an EJS file. This is my code: //server.js users = require('./controllers/users.js'); global.app_root ...
(1) odpowiedzi
2017-11-22 15:11 Axios GET request not working »
I'm using: Axios: 0.17.1 Node: 8.0.0 The following standard Node get works fine, but the Axios version does not. Any ideas why? Node http: http...
(2) odpowiedzi
2017-11-22 14:11 Express share ejs templates between multiple projects »
I am building a large app that has been developed in multiple sub apps divided by sub domains. sub1.domain.com, sub2.domain.com, sub3.domain.com. The...
(0) odpowiedzi
2017-11-22 06:11 How to delete an object in an array in lodash »
I have an array of objects and I need to delete few of the objects based on conditions. How can I achieve it using lodash map function? Ex: [{a: 1},...
(4) odpowiedzi
2017-11-22 00:11 Views not refreshing correctly using SailsJS »
in my code, i have a view called "show.ejs" which shows client details. the proble; now is that if i update client details (image, associated docs, .....
(2) odpowiedzi
2017-11-22 00:11 How to fix dynamic requires in third-party libraries? »
My desktop app is using Electron+React for the interface and Edge.js to connect Node with my C# application. My problem is: Webpack is failing to bun...
(1) odpowiedzi
2017-11-21 19:11 Exception CSRF check for routers node js »
I am using webook to call one of my routers in my node js application. I want to not use 'csurf' which is a library for CSRF token when that specific ...
(0) odpowiedzi
2017-11-21 15:11 Bug when converting string to integer »
Hey guys I have a problem with parsing Strings in Javascript. I have a big Number (162778063615164416) as a string. This is how a userID of discord lo...
(3) odpowiedzi
2017-11-21 13:11 Correct way to terminate a postgres replication mode connection »
I have the following code that enables logical decoding in postgres 9.4: pg_recvlogical -h localhost --slot test_slot --create-slot pg_recvlogical -h...
(0) odpowiedzi
2017-11-21 11:11 Mock Es6 classes using Jest »
I'm trying to mock an ES6 class with a constructor that receives parameters, and then mock different class functions on the class to continue with tes...
(1) odpowiedzi
2017-11-21 07:11 "google not defined" error in maps api in ejs »
Why am I getting the error that 'google is not defined' when using the Maps API? I tried removing the async in the script tag like in some other posts...
(0) odpowiedzi
2017-11-21 00:11 How to use JSON.parse in nunjucks »
i am get data in mongodb and express return occurs without errors but I wanted to use JSON.parse in the final results of my .find see below how I'm tr...
(1) odpowiedzi
2017-11-20 12:11 How does promise make code asynchronous? »
I know we all use promises to avoid function callback hell, but my question is where in the event loop the promise code runs and whether the code is r...
(1) odpowiedzi
2017-11-20 09:11 How to debug an arbitrary/random script with Visual Studio Code »
I normally use Webstorm, but after several years of success with Webstorm I am having some weird issues, so I am trying out VSCode - I'd like to be ab...
(2) odpowiedzi
2017-11-20 08:11 What is the best practice to store SSH keys in database? »
I am building rest APIs for an application in node.js, where user needs to upload their server details like, HostName UserName PrivateKey Once the us...
(0) odpowiedzi
2017-11-20 07:11 EJS Variable Throws Error Even Though It Renders Properly »
I have an array of objects I am trying to iterate through in an ejs template, but I keep getting "Reference Error: bills is not defined". Other Stack...
(1) odpowiedzi
2017-11-19 18:11 Undefined db connection with knex »
I am executing the following script, node acl.js: acl.js require('dotenv').config() const _ = require('lodash'); const buckets = require('./buckets...
(1) odpowiedzi
2017-11-19 16:11 What is the I/O in explanation process.nextTick and setImmediate? »
I read explanation about them and process.nextTick fires before Input/Output operations and setImmediate - after I/O operations, so. I understand that...
(1) odpowiedzi
2017-11-19 15:11 How to send (emulate) keybinding to webContents in electron? »
I'm building electron application that makes a desktop interface for a website. On the website, I already have registered keybindings, like Shift+? th...
(1) odpowiedzi
2017-11-18 21:11 Grunt: How to run a function and then a task and then another function, sequentially, when the functions can not be split in to different tasks? »
I am using Grunt to generate a build. I am new to Grunt, javascript, and nodejs, so any new perspectives would be welcomed. Some of the tasks in my ...
(1) odpowiedzi
2017-11-18 16:11 Network request to TV works from any device but Raspberry Pi »
I'm trying to control my Panasonic TV via network. I had all my code (node) running from the laptop when I transferred it to the Raspberry. For some r...
(0) odpowiedzi
2017-11-18 11:11 Microservices sharing code »
There are so many answers and blogposts saying "never share code between microservices" and I wonder right now how I am supposed to follow that advice...
(0) odpowiedzi
2017-11-17 22:11 Why does adding a space character at the end of a year string cause JavaScript (node) to apply the timezone offset? »
This is in Node v8.9.0 specifically. Consider these lines: console.log(new Date("2006")); console.log(new Date("2006 ")); They produce this output...
(1) odpowiedzi
2017-11-17 19:11 Error running Node.js' fs.rename() inside of a loop »
I'm developing an application that has to organize some uploaded files, I'm separating them in folders with the ID of their request (I'm using express...
(2) odpowiedzi
2017-11-17 14:11 Can I share a service between Angular and Node? »
I have a standard utility service in my Angular5 Typescript app. I want to share that with my node application, which is serving the app. I can't fin...
(3) odpowiedzi
2017-11-17 10:11 Detect functions with too long length (>100 lines)? »
Is there any way to detect the functions in my Node App that are longer than 100 lines? Im using JSHint but it doesnt have any option to detect it. ...
(2) odpowiedzi
2017-11-16 23:11 Cannot read property 'substring' of undefined »
I have the following code that is causing me an error stating Cannot read property 'substring' of undefined <div class="extra"> &...
(2) odpowiedzi
2017-11-16 15:11 ExpressJS - Call an outer function in router.get and render its data »
I need to call functions in order to render mysql queries data to my views instead of having the query functions inside the router.get How can I call...
(2) odpowiedzi
2017-11-16 14:11 npm is not recognized as an internal or external command in windows »
When I try to run npm install on windows, I get the following error. How can get rid of it? D:\Xampp\htdocs\laravelchat>npm install 'CALL "C:\Prog...
(1) odpowiedzi