Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialnishantr
6,326 Pointsgetting error while running server
ReferenceError: app is not defined at Object.<anonymous> (C:\projects\weather-app\src\app.js:5:5) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10) at startup (node.js:139:18) at node.js:968:3
getting this if i run node app.js
Stephan L
17,821 PointsStephan L
17,821 PointsHi there, not entirely sure if this is it without seeing the code, but based on the error message it looks like you're trying to use variable app on your app.js file? Did you remember to require app from another module? Did you remember to export app from that module so you can access it in app.js? Hope that helps.