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/Questions/Page 2

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, 2020

TypeError: Cannot destructure property `db` of ‘undefined’ or ‘null’

  • 4

I am getting a TypeError in my variable assignment for mongodb connection. Is there a workaround for this? //server.js var mongoose = require('mongoose'); var config = require('./config'); var { db: {user,pass,host,port,name } } = config; var connectionString = `mongodb://${user}:${pass}@${host}:${port}/${name}`; mongoose.connect(connectionString, { useMongoClient: true }); Error C:\mean\webguidv1\server.js:65 ...

destructuringmongodbnode.jstypeerrorvar
  • 1 1 Answer
  • 11 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
  • 9 Views
Answer
Kenil Vasani
Kenil Vasani

Kenil Vasani

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

Unable to install node-sass in my project

  • 2

Closed. This question needs debugging details. It is not currently accepting answers.

node-sassnode.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
  • 1
Kenil Vasani
Asked: December 22, 2020

ReferenceError: request is not defined

  • 1

Im trying to replicate a facebook messenger bot but keep getting request is not defined. Same code as facebook: function callSendAPI(messageData) { request({ uri: 'https://graph.facebook.com/v2.6/me/messages', qs: { access_token: PAGE_ACCESS_TOKEN }, ...

expressnode.js
  • 1 1 Answer
  • 14 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
  • 15 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, 2020

Angular 7 app getting CORS error from angular client

  • 9

I have developed an angular 7 app with express backend. Express running on localhost:3000 and angular client is running on localhost:4200. In the server.js I have (not the entire code) const app = express(); // Enable CORS app.use(cors()); // Get our API routes const api = ...

angularangular7corsexpressnode.js
  • 1 1 Answer
  • 24 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, 2020

electron – node.js – ng : file path\ng.ps1 cannot be loaded because running scripts is disabled on this system

  • 8

I am trying to compile a project on Windows 10 in Visual Studio Code, my settings are the following: 1) npm version 6.12 2) Node.js version 12.13 3) Angular CLI: 8.3.19 The problem I have is as soon as I try to run ng ...

angularelectronnode.jsnpm-startpowershell
  • 1 1 Answer
  • 10 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, 2020

Node MODULE_NOT_FOUND

  • 5

I just upgraded to node version 9.0.0 and am now getting this error in the command line when trying to use npm install npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'internal/util/types' I’m using: OSX 10.10.5 Node version 9.0.0 NPM version 5.5.1 Extra information: I am ...

node.jsnpm
  • 1 1 Answer
  • 9 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, 2020

MongoDB connection error: MongoTimeoutError: Server selection timed out after 30000 ms

  • 8

I am trying to create a fullstack app reading the following tutorial: https://medium.com/javascript-in-plain-english/full-stack-mongodb-react-node-js-express-js-in-one-simple-app-6cc8ed6de274 I followed all steps and then tried to run: node server.js But I got the following error: MongoDB connection error: MongoTimeoutError: Server selection timed out after 30000 ms

mongodb-atlasmongoosenode.js
  • 1 1 Answer
  • 10 Views
Answer
1 2 3 … 65

Sidebar

Ask A Question
  • Popular
  • Kenil Vasani

    SyntaxError: invalid syntax to repo init in the AOSP code

    • 5 Answers
  • Kenil Vasani

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

    • 3 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

    FATAL EXCEPTION: Firebase-Messaging-Intent-Handle — java.lang.NoClassDefFoundError

    • 2 Answers

Explore

  • Most Answered
  • Most Visited
  • Most Voted
  • Random

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