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 trialMark Westerweel
Full Stack JavaScript Techdegree Graduate 22,378 PointsMessage doesn't show up in the browser.
Hi!
The "This message made it!" doesn't appear in my browser. It does in the terminal and no errors found, but a DepreciationWarning OutgooingMessage.prototype._headers is deprecated.
I checked by copying both the 02_middle_basics_final
and the 03_using_next_and_errors
to see if it somehow must be my code.
I had a similar experience with the Express course and for a few lessons (I believe the two last from the 5th part and the 6th part up to the very last or so), the downloadable code did not do the trick.
It is really annoying when your code matches EXACTLY what's on screen, you go over it few times, give up, verify with the downloadable files and see it doesn't work either.
Can someone from the team check it out?
2 Answers
Nick Huemmer
Front End Web Development Techdegree Graduate 26,840 PointsI just noticed the same thing with the beginning of the video, I get:
(node:35616) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
in the terminal along with the code that should be logged. It doesn't seem like this message has anything to do with how the code runs and where the messages show up, though.
It's a bit confusing - it seems that Joel is actually seeing the messages in his browser, but he's actually seeing them in his terminal. In the beginning this isn't apparent, but towards the end it is.
Robert Bourton
6,179 Pointsapp.js
console.log("Hello World")
Running this with Node.js, you will see it in the terminal.
script.js
console.log("Hello World")
In your HTML file <script src="script.js"></script>
You will see this in your browser console.
Server Side JavaScript vs Client Side JavaScript Node.js (JavaScript) VS JavaScript
Michael Kristensen
Full Stack JavaScript Techdegree Graduate 26,251 PointsMichael Kristensen
Full Stack JavaScript Techdegree Graduate 26,251 PointsI solved the deprecation problem by uninstalling whichever version of Express I had installed, by using the terminal console in the project directory;
npm uninstall express
, and reinstalling it, with the newest package;npm install express@latest