[beta] Basic Node & Express - TypeError: Cannot read property 'stack' of undefined
See original GitHub issueChallenge Name
https://beta.freecodecamp.org/en/challenges/basic-node-and-express/meet-the-node-console
Issue Description
Using Glitch - below error in console on opening - cannot read property ‘stack’ of undefined.
If coding console.log(“Hello World”); as per challenge instructions, will print before error but not pass tests.
If attempting to run locally cannot run ‘npm start’ as Error: Cannot find module ‘fcc-express-bground’ also present. Solved this with ‘npm install fcc-express-bground’ but then receive same cannot read property ‘stack’ of undefined error (same output as below).
Could not find node 4.4.5, using 6.12.3
2:26 PM
a few seconds ago
TypeError: Cannot read property 'stack' of undefined
2:26 PM
at Object.setupBackgroundApp (/app/node_modules/fcc-express-bground/index.js:149:31)
2:26 PM
at Object.<anonymous> (/app/server.js:25:9)
2:26 PM
at Module._compile (module.js:570:32)
2:26 PM
at Object.Module._extensions..js (module.js:579:10)
2:26 PM
at Module.load (module.js:487:32)
2:26 PM
at tryModuleLoad (module.js:446:12)
2:26 PM
at Function.Module._load (module.js:438:3)
2:26 PM
at Module.runMain (module.js:604:10)
2:26 PM
at run (bootstrap_node.js:383:7)
2:26 PM
at startup (bootstrap_node.js:149:9)
2:26 PM
Node is listening on port 3000...
Browser Information
- Browser Name, Version: Chrome - Version 64.0.3282.140 (Official Build) (64-bit)
- Operating System: Windows
- Mobile, Desktop, or Tablet:
Screenshot
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (18 by maintainers)
Top Results From Across the Web
Cannot read property 'name' of undefined express js+jade ...
How to fix TypeError: Cannot read property 'name' from Express Nodemailer app.use(express.bodyParser());. That line would let you read the post data form.
Read more >TypeError: Cannot read property 'username' of undefined
This is an Node.js bot and its also java script. Problem is that cannot read property 'username,etc' of undefined is stopping me from...
Read more >cannot read properties of undefined (reading 'path') nodejs
Coding example for the question TypeError: Cannot read properties of undefined (reading 'path')-node.js. Home Services Web Development ... [Solved]-TypeError: ...
Read more >How to deal with TypeError: cannot read properties of null
In JavaScript, if the DOM element has not been created before loading the code then you will always get an error and your...
Read more >Uncaught TypeError: Cannot read property 'find' of undefined
Looks like the line findById is async so you need to await it or use .then(). Might help to also console log the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The move is now complete. Thanks @Em-Ant for your help and support on this. Repo is available here: https://github.com/freeCodeCamp/fcc-express-bground-pkg
@Em-Ant you can transfer this repo and any other repos to me, I’ll take care of moving them over to the org. Also its preferable that you change the naming schema as per the boilerplates.