Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

ErrorCorner

ErrorCorner Logo ErrorCorner Logo

ErrorCorner Navigation

  • Home
  • Contact Us
  • About Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Contact Us
  • About Us
Home/javascript

Discy Latest Questions

Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 4
Kenil Vasani
Asked: December 22, 2020In: Javascript

npm run build gives out npm ERR! code ELIFECYCLE

  • 4

I’m very new to Node.js and Electron and wanted to run npm run build. Unfortunately, that only gives me out the error code ELIFECYCLE. Here is my package.json: { "name": "firstelectronproject", "version": "0.1.0", ...

electronjavascriptnode.js
  • 1 1 Answer
  • 32 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 8
Kenil Vasani
Asked: December 22, 2020In: Javascript

RangeError: Invalid time value

  • 8

I’m getting frequent errors when i start my server. Here is the error: RangeError: Invalid time value at Date.toISOString () Here is the code: var start = timestamp; const expiryDate = (new Date(start)).toISOString().split('T')[0];

javascriptnode.js
  • 1 1 Answer
  • 31 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 5
Kenil Vasani
Asked: December 22, 2020In: Javascript

JSON.parse() causes error: `SyntaxError: Unexpected token in JSON at position 0`

  • 5

I’m writing my first application in Node.js. I am trying to read some data from a file where the data is stored in the JSON format. I get this error: SyntaxError: Unexpected token  in JSON at position 0 at Object.parse (native) Here is ...

javascriptjsonnode.js
  • 1 1 Answer
  • 69 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 8
Kenil Vasani
Asked: December 22, 2020In: Javascript

TypeError: res.json is not a function

  • 8

I’m trying to send two json but It doesn’t work. It prints TypeError: res.json is not a function but I don’t get why It happens. Is there any ideas? Thank you !! app.post('/danger', function response(req, res) { let ...

expressjavascriptjsonnode.js
  • 1 1 Answer
  • 24 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 6
Kenil Vasani
Asked: December 22, 2020In: Javascript

How to console.log an error with stack trace in node.js?

  • 6

I’ve been trying to debug my node app to find the source of an error in my log that shows up only as “Error: Can't set headers after they are sent“, with no trace information or any context. As it happens, ...

error-handlingjavascriptnode.js
  • 1 1 Answer
  • 14 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 8
Kenil Vasani
Asked: December 22, 2020In: Javascript

WebSocket connection to ‘ws://localhost:9090/’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

  • 8

I am new to WebRTC and WebSockets and was following this tutorial to create a WebRTC demo project, but I am unable to create a WebSocket connection. I have followed the same steps as mentioned in the project. His project ...

javascriptnode.jswebrtcwebsocket
  • 1 1 Answer
  • 24 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 4
Kenil Vasani
Asked: December 22, 2020In: Javascript

jQuery is not defined for angular 2

  • 4

I am trying to use ng2-datetime. However, when I follow the instruction and installed npm install –save ng2-datetime, I get the following error. I have tried running the following npm install but it doesnt fix ...

angularjavascriptjquerynode.js
  • 1 1 Answer
  • 10 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 9
Kenil Vasani
Asked: December 22, 2020In: Javascript

Why do I get Cannot read property ‘toString’ of undefined

  • 9

I use this package. I’ve added these console.log‘s at the beginning of the slug function. function slug(string, opts) { console.log('log 1: -------'); console.log('log 2: ' + string); console.log('log 3: ...

javascriptnode.js
  • 1 1 Answer
  • 11 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 0
Kenil Vasani
Asked: December 22, 2020In: Javascript

ReferenceError : window is not defined at object. Node.js

  • 0

I’ve seen similar questions that were asked here but none matches my situation. In my web I have 3 JavaScript files : client.js , server.js ,myModule.js . In client.js I create a window variable called windowVar and I add to ...

javascriptnode.js
  • 1 1 Answer
  • 17 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 6
Kenil Vasani
Asked: December 22, 2020In: Javascript, typescript

Angular 7: NullInjectorError: No provider for PagerService

  • 6

I am trying to implement pagination but It’s not working. Here is my code: pager.service.ts: import * as _ from 'underscore'; @Injectable({ providedIn: 'root', }) export class PagerService { getPager(totalItems: number, currentPage: number ...

angularangular7javascriptnode.jstypescript
  • 1 1 Answer
  • 10 Views
Answer
1 2 … 6

Sidebar

Ask A Question
  • Popular
  • Kenil Vasani

    SyntaxError: invalid syntax to repo init in the AOSP code

    • 5 Answers
  • Kenil Vasani

    Homebrew fails on MacOS Big Sur

    • 3 Answers
  • Kenil Vasani

    runtimeError: package fails to pass a sanity check for numpy ...

    • 3 Answers
  • Kenil Vasani

    xlrd.biffh.XLRDError: Excel xlsx file; not supported

    • 3 Answers
  • Kenil Vasani

    create-react-app is not working since version 4.0.1

    • 2 Answers

Explore

  • Most Answered
  • Most Visited
  • Most Voted
  • Random

© 2020-2021 ErrorCorner. All Rights Reserved
by ErrorCorner.com