52 |

53 |
Thank you for purchasing Node.js in Action, Second Edition. Please post any errors, other than those listed below, in the book's Author Online Forum. We'll compile a comprehensive list and publish it here for everyone's convenience. Thank you!
54 |
Last updated 2017/11/02
55 |
56 | -
57 |
Page 52, Snippet under 'A simple server'
58 | The anonymous function at the end of the listing is missing an opening curly brace and a closing bracket. It should read:
59 |
60 |
61 | app.listen(port, () => {
62 | console.log(`Express web app available at localhost: ${port}`);
63 | });
64 |
65 |
66 | -
67 |
Page 102, Section 5.9
68 | Loopback has changed since the time of publishing. If you're using Loopback 3.0, install loopback-cli with npm instead of the strongloop package. The lb tool is now known as slc.
69 |
70 | -
71 |
Page 109, Section 6.1.1
72 | Express is no-longer built with Connect since version 4.0.
73 |
74 | -
75 |
Page 119, Figure 6.6
76 | The screenshot shows jade when it should show pug.
77 |
78 | -
79 |
Page 173, Snippet
80 | The snippet near the end of the page has a Pug style keyword that needs a fullstop to work correctly:
81 |
82 |
83 | style.
84 | h1 {
85 | font-size: 6em;
86 | color: #9DFF0C;
87 | }
88 |
89 |
90 | -
91 |
Page 185, Listing 8.3
92 | The function is missing two arguments on line 16. It should be: (err, result) => {
93 |
94 |
95 |
96 |