Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Other Digital Version | xvii 2nd paragraph |
ebook format only, on ibooks: "italic" is not italic |
nicrizzo | Sep 17, 2011 |
Other Digital Version | ? EJS Examples |
The twitter example using EJS is utterly incomplete and leaves out a ton of key information needed to come anywhere close to getting the example to work. As others have already mentioned, you need to install ejs to begin with, need to create the initial layout.ejs file and name all other files with .ejs extensions and call app.set("view engine", "ejs"). All of this is absolutely vital information and wasn't mentioned in any way at all. The book up to this point has been great. I'm hoping the rest of the book doesn't have similar serious omissions. |
Keith Peters | Jun 16, 2012 |
Other Digital Version | I-2 Entire section |
The Express API has changed for 3.x. You should either post the correct code somewhere or else include a package.json with the version of Express that works designated as a dependency. And talk about npm packages, of course. |
Anonymous | Feb 17, 2013 |
Other Digital Version | 2.0 Let's Build Twitter example |
Once I got the EJS layout the author lost me on the details. |
Kevin MacPherson | May 15, 2012 |
Other Digital Version | 2-19 2nd paragraph |
No matter what I do, I cannot get the Twitter example to work with ejs. |
Tom Igoe | Jun 09, 2012 |
Page 4 2nd paragraph |
A few 'typos': |
Lindsay Davies | May 25, 2011 | |
Page 7 3rd paragraph |
"Each browser has their own JavaScript runtimes: Spider Monkey for Firefox..." |
Anonymous | Jun 13, 2011 | |
PDF, Other Digital Version | Page 12 2nd paragraph |
proceedural instead of procedural |
nicrizzo | Sep 17, 2011 |
PDF, Other Digital Version | Page 14 list, 2nd paragraph |
deligating instead of delegating |
nicrizzo | Sep 17, 2011 |
Page 15 2nd Paragraph |
Chapter 4 |
Greg Swanson | May 18, 2011 | |
PDF, Other Digital Version | Page 15 1st paragraph |
proceeedural instead of procedural |
nicrizzo | Sep 17, 2011 |
PDF, Other Digital Version | Page 16 last paragraph |
consiquence instead of consequence |
nicrizzo | Sep 17, 2011 |
Printed | Page 21 top of page |
node book-chat.js |
Marty Leisner | Aug 19, 2012 |
Printed | Page 22 Example 2-11 |
clientList[i].writeable is undefined. |
Joseph Campbell | Dec 15, 2012 |
PDF, ePub, Mobi | Page 24 Example 2-14 |
The express module no longer inherits the http module. Stdout/err details are below. |
James Conner | Oct 15, 2012 |
Page 25 Example 2-15. Adding a basic API |
In Example 2-15 the following line of code: |
Shadoobie | Mar 09, 2013 | |
Page 25 example 2-15 |
bodyParser is no longer in express 4. It should be insalled independently. See here https://github.com/visionmedia/express/wiki/Migrating-from-3.x-to-4.x |
Albert | Apr 16, 2014 | |
Page 25 app.post('/send', express.bodyParser(), function(req, res) { |
When you try this example now you get an error explaining that most middleware is no longer packaged with express. So the examples don't work. Would it be possible to have the author update code examples when necessary on your website? |
David Posner | Oct 30, 2016 | |
PDF, Other Digital Version | Page 26 1st paragraph |
unerstand instead of understand |
nicrizzo | Sep 17, 2011 |
Printed | Page 27 assert call in sample code |
I believe assert.strictEqual(...) should be assert.deepEqual(...) |
Curt Carpenter | May 11, 2012 |
27 Example 2-16 |
The assert test for the Twitter server didn't work for me due to newline characters in the data string. I got round this by converting the data string to a JSON object and comparing that with an object. There are fewer quotes this way so it's harder to mistype. |
sillypog | Oct 30, 2012 | |
Page 27 Example 2-16. A test for the POST API |
On page 25 |
Shadoobie | Mar 09, 2013 | |
29 example 2-18, 2-20, 2-21, and 2-22 |
While the text describes the structure of the Express app, it fails to actually name these files. I found that naming the file "layout", "layout.js", "layout.html" all failed. |
Anonymous | May 10, 2012 | |
29 Examples 2-18 through 2-22 |
The EJS section is completely incomprehensible if you don't already know the technology and know what these files should be named or where they should be placed. |
Anonymous | May 19, 2012 | |
Page 29 example 2-18 |
In ejs 1.0.0, function partial has been removed. Instead, use code like below: |
Albert | Apr 16, 2014 | |
Page 30 Example 2-20. An index template to show tweets and let people post new tweets |
On Page 30 |
Shadoobie | Mar 10, 2013 | |
PDF, Other Digital Version | Page 30 Example 2-19 |
For the Chirpie example, I was unable to get the local variables to work, most likely due to the many different Node.js and Express changes. |
Hines Vaughan III | Jan 26, 2015 |
Page 31 Bottom: example 2-23 |
The for loop does "i+=0" and it should be "i+=1" |
Kevin Beam | May 09, 2012 | |
Page 31 Example 2-23. A small function to check for text/html in an accept header |
Page 31 |
Shadoobie | Mar 10, 2013 | |
32 Example 2-23/ 2-24 |
The addition of the acceptsHtml function seems to break the test case built earlier in the chapter: |
Anonymous | May 10, 2012 | |
Page 41 example 3-3 |
missing closing parentheses: |
lina mist | May 21, 2012 | |
Page 42 Example 3-5 |
The book lacks an example of "... , two groups of parallel requests could execute serially: do this and that together, then do other and another together." [p. 41] |
Anonymous | Aug 07, 2012 | |
Printed | Page 42 United States |
|
Anonymous | Jul 31, 2013 |
Printed | Page 51 |
In example 3-14 "killing Zombie workers", the function "createWorker" contains an error probably due to a change of the Cluster API. This is for the author to determine. |
Mathias Behne | Sep 07, 2012 |
Page 56 Example 4-2 |
The 'utils' module should just be 'util'. |
Kevin Beam | May 10, 2012 | |
Page 57 Last sentence of first paragraph |
The sentence refers to the "sys.inherits" method and it should be "util.inherits". |
Kevin Beam | May 10, 2012 | |
Page 83 Second paragraph from bottom |
"The block sizes vary between algorithms: |
Vladimir Makhnovskiy | Oct 04, 2012 | |
ePub | Page 84 United States |
The Let's Build Twitter is severely lacking in information. Moreover with updates to Express and EJS there are some lines of code that just don't work. |
Sam Kenny | Jan 11, 2014 |
ePub | Page 643 ebook version example 2-15 |
node twitter.js |
Anonymous | Oct 23, 2013 |
Other Digital Version | 999 Chapter 2 after example 2.4 |
This sentence has a syntax issue: |
Juan Lanus | Jan 30, 2013 |
ePub | Page 1174 middle |
the EJS example states "The tweets are also coming out in chronological order...We'll fix that too" |
Anonymous | Nov 12, 2012 |