The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

pog22 (1) [Avatar] Offline
#1
Chapter 3 of the 1st edition contains the following:

In app.js find the following lines:

var routes = require('./routes/index');
var users = require('./routes/users');

and change them to the following (modifications in bold):

var routes = require('./app_server/routes/index');
var users = require('./app_server/routes/users');


However the lines it mentions don't exist. I even tried uninstalling express and installing v4.9 (used in the book) but to no avail. Can someone from Manning help?
Jumy Elerossë (11) [Avatar] Offline
#2
pog22 wrote:Chapter 3 of the 1st edition contains the following:

In app.js find the following lines:

var routes = require('./routes/index');
var users = require('./routes/users');

and change them to the following (modifications in bold):

var routes = require('./app_server/routes/index');
var users = require('./app_server/routes/users');


However the lines it mentions don't exist. I even tried uninstalling express and installing v4.9 (used in the book) but to no avail. Can someone from Manning help?


Dude, this forum is for the 2nd edition... Anyways, check the following:

- Did you do a npm install?
- Does the folder app_server/routes exists?
- Does that folder contains the files index.js and routes.js?