Susan Harkins (325) [Avatar] Offline
#1
Please list errors in the published version of Express in Action here. We'll compile and publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
Manning Publications
386460 (1) [Avatar] Offline
#2
You may have caught this but bottom p1 top p2 there is duplication

'People want to make web applications with Node.js, but the
“vanilla” Node.js APIs can be verbose, confusing, and limited in features. Developers often
have to write a lot of boilerplate code'


Looks like one of those paragraphs is a rewrite
382425 (1) [Avatar] Offline
#3
Pages 46 (Listing 3.20) and 47 (Listing 3.23) have an error. On page 46 an array named "entries" is formed with each object in the array having title, content, and published properties. On page 47 the sample code does a forEach loop on the array and accesses the published, title, and body properties. "Content" and "body" don't match, so it's unable to find the data stored in the array.

This error is found in both the print and pdf copy.
Susan Harkins (325) [Avatar] Offline
#4
The current errata list for Express in Action is available at https://manning-content.s3.amazonaws.com/download/a/2d106eb-5462-43b6-9caf-ea95b092b8a9/Hahn_express_in_action_err2.html.

Susan Harkins
Errata Editor
Adel (2) [Avatar] Offline
#5
On page 133, Listing 8.15 :

Following the code example leads to this error : Unknown authentication strategy "login"

And this warning : DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
465147 (1) [Avatar] Offline
#6
Page 60-61, Listing 4.5

The code example uses fs.stat inside a middleware function.

   
//...
fs.stat (filePath, function(err, fileInfo) { 
 // ...
}


however, the following paragraph describing the middleware function refers to 'fs.exists' which is now deprecated.

Next, you call fs.exists, which takes two arguements.

(p61, ln9)
479745 (1) [Avatar] Offline
#7
p.46

Renders the “new entry”
page (at views/index.ejs)
when GETting the URL

should be

Renders the “new entry”
page (at views/new-entry.ejs)
when GETting the URL
377465 (1) [Avatar] Offline
#8
Listing 3.23. index.ejs


<div class="panel-body">
        <%= entry.body %>
      </div>


should be

<div class="panel-body">
        <%= entry.content %>
   </div>
Susan Harkins (325) [Avatar] Offline
#9
An updated errata list is available at https://manning-content.s3.amazonaws.com/download/3/7dc447b-d272-402e-a56d-4ca68c80e97f/Hahn_express_in_action_err3.html. Thanks!

Susan Harkins
Errata Editor
Manning Publications