Data dodania Pytanie
2017-09-26 16:09 How to upload a file using WebdriverIO »
I'm trying to port the following code from Ruby with the selenium-webdriver gem to Node.js with WebdriverIO: @webdriver.navigate.to "https://imgur.c...
(1) odpowiedzi
2017-09-26 10:09 React unique key when mapping warning »
I'm quite new to react and I'm facing a problem I can't solve. Here is my react component: import React from 'react'; import Header from './Header'; ...
(3) odpowiedzi
2017-09-26 00:09 What does the "_" (underscore) symbol in Node.js REPL mean? »
I was playing in Node.js with some code when I noticed this thing: > 'hello world'.padEnd(20); 'hello world ' > 'hello world'.padEnd(20...
(2) odpowiedzi
2017-09-25 23:09 How to use untyped JS NPM modules in TypeScript for node? »
Ive just started experimenting with TypeScript and I have a following project structure: -src | index.ts | MyClass.ts -node_modules -npm_js_module ...
(2) odpowiedzi
2017-09-25 21:09 Yocto do_package_qa hangs for bin_package nodejs recipe »
Using Yocto morty, I'm trying to add a prebuilt version of nodejs in my distribution. When I bitbake core-image-sato, do_package_qa hangs for hours. ...
(0) odpowiedzi
2017-09-25 18:09 A survey website, Node.js data collection anamoly on heroku »
I am working on a website which contains a form. My requirement is to gather all the form data per user. Its an academic project with tight funding,...
(0) odpowiedzi
2017-09-24 19:09 while Installing Node JS 4.8 on Centos 7 installs 6.11 »
Currently I tried installing Node Js specific version 4.8 on my Centos-7 64 bit machine. Using below commands # curl -sL https://rpm.nodesource.com/...
(2) odpowiedzi
2017-09-24 17:09 how to make ejs template passed to bootstrap modal does show up in browser? »
I'm new to node JS and web development. This is a pet-project I'm working on to sharpen my skill. I have a problem to show ejs data in bootstrap modal...
(0) odpowiedzi
2017-09-24 16:09 Enabling http compression with express »
I'm messing around with the Darksky API and under one of the query parameters it states: extend=hourly optional When present, return hour-by...
(2) odpowiedzi
2017-09-24 13:09 Accessing table rows in EJS template on POST request route from inside Node.js »
I have a product order form in which the user fills the data and that data is then added to a table row and the fields are cleared, so he can add anot...
(0) odpowiedzi
2017-09-24 09:09 Mongodb findOneAndUpdate function is inserting new document »
I just need to update serviceActiveFlag status whenever i make an update api call.After an update api call,i can see a new document with empty vehicl...
(0) odpowiedzi
2017-09-23 13:09 Transform an array to an object with nested properties according to the array »
I have several arrays as the following: [ 'businessOpenAccount', 'accountSettings1.page.js' ] [ 'businessOpenAccount', 'accountSettings2.page.js' ] [...
(2) odpowiedzi
2017-09-23 11:09 How to make nodejs cassandra driver work in Lambda? »
Lambda not returning the callback function if I'm not closing the connection but if I do close the connection the second time the function not working...
(0) odpowiedzi
2017-09-23 07:09 OAuth Exception in Facebook messenger chatbot using api.ai and heroku(node.js) »
I have shared my code and the error that popped up below. Basically, I followed the tutorial http://www.girliemac.com/blog/2017/01/06/facebook-apiai-b...
(1) odpowiedzi
2017-09-23 07:09 EJS Inline DOM Selector Undefined »
I'm using Node.js, Express, Chart.js and EJS for templates. I want a template that gets passed a variable with a list of objects. Each object defines ...
(1) odpowiedzi
2017-09-23 06:09 Cannot insert question mark in postgres insert »
I'm trying to run a simple Postgres SQL insert: insert into "Resources" values(1, 'How are you?'); But the result after insert is: ID Data ...
(1) odpowiedzi
2017-09-23 01:09 Is there any way to save HTML element class changes made by Jquery in a generated EJS file? »
I have a to-do list node project, where each to-do list is saved as an entity in MongoDB, like so: var todoSchema = new mongoose.Schema({ items: [S...
(1) odpowiedzi
2017-09-22 19:09 values assigned to node.js variable return strange values »
I am getting hands-on Node.js, and I found it pretty exciting. However, when I was trying to work out with variables I got strange results. When 01234...
(2) odpowiedzi
2017-09-22 15:09 Telegram bot reply for loop »
I just want to read my data in an Object and print multiply buttons in a row. How could I do that? A similar example : var obj={"coca":"2$" , "7up":...
(1) odpowiedzi
2017-09-22 08:09 Do not work socket.io-client with Angular2 when server emit event to specific client (different angular2 service) »
I created two service send-message.service.ts import { Injectable } from "@angular/core"; import * as io from 'socket.io-client'; @Injectable() expo...
(1) odpowiedzi
2017-09-22 06:09 NodeJS + EJS + Promise : page is not displayed until the promise is fulfilled »
I retrieve data from a web service in a promise and display it using EJS. The problem is that the HTTP page is not displayed until the promise is fulf...
(2) odpowiedzi
2017-09-21 18:09 Wait until the page loads protractor »
I have a login screen and when I press the Login button goes to the dashboard page. However, I often miss my timeout. Is there any possibility that wh...
(2) odpowiedzi
2017-09-21 15:09 React Router / Express - Refreshing dynamic URL parameters »
My React router works fine when navigating to '/Article/1/' via a link, though when I refresh my browser, it no longer detects my Article component. ...
(1) odpowiedzi
2017-09-21 03:09 UnhandledPromiseRejectionWarning after catching a rejected promise »
Running the following code with Node v8.1.4: testPromise((err) => { if (err) throw err; }); function testPromise(callback) { Promise.reject(n...
(1) odpowiedzi
2017-09-20 18:09 Is there a way to know where is require/resolve tryting to find modules in Node.js? »
I'm working on a plugin system for a Node.js library and I'm having a little bit of trouble trying to figure out where the "require" and "require.reso...
(1) odpowiedzi
2017-09-20 13:09 How can I render .ejs file from node.js controller? »
I have the following folder structure: bin controllers models node_modules public routes views app.js package.json As I am new to node.js and expres...
(2) odpowiedzi
2017-09-20 11:09 Why is json_populate_record() not recognizing row type? »
I have 2 tables type and name. I am trying to insert into these with json_populate_record() through a function. Receiving the following error: first ...
(1) odpowiedzi
2017-09-20 09:09 Node JS Undefined variable »
I have a function that's supposed to loop through a JSON file, get the values and push them to a new array. I have declared the array outside the ...
(1) odpowiedzi
2017-09-20 07:09 Track yarn's node_modules directory properly in git »
We've got a weird dependency in our CI that requires our git repo to have a node_modules directory (but obviously not the packages in it). Since git ...
(2) odpowiedzi
2017-09-19 23:09 Could not find include include file »
I'm running a simple server var express = require('express') var app = express() app.set('view engine', 'ejs'); app.use(express.static('public')) ...
(1) odpowiedzi
2017-09-19 22:09 Node express & pg-promise - db.any is not a function »
I have this error : TypeError: db.any is not a function I'm using node JS, with pg-promise and express. Here is the queries.js file (db) : const...
(2) odpowiedzi
2017-09-19 21:09 NodeJS opening a new window when rendering ejs file »
Is there any way to render an EJS file to a new window in client side? Thanks ...
(0) odpowiedzi
2017-09-19 19:09 SyntaxError: missing ) after argument list, When using async »
Why am I getting this error When I use async? My Code: bot.onText(/\/start/, async msg => { const opts = { parse_mode: 'Markdown' , re...
(1) odpowiedzi
2017-09-19 15:09 How to universally export an NPM module (for the Browser)? »
I wrote an NPM module. Let's say this is it: class MyModule { // bla bla }; I want to export MyModule in an universal way, so people can import...
(3) odpowiedzi
2017-09-19 07:09 failed to retrive result from firebase-nodejs XHR error in my dev tools(network)Chrome »
i got this error in chrome Cannot GET /genres/delete/-Ku4T2XCMDIERd2WyCsn xhr error 404 and gave me the name of my jquery file dunno what the problem ...
(0) odpowiedzi