uli_sinn (6) [Avatar] Offline
#1
Hi -

app.get('/', renderViewMiddleware); does not work.

If I change it to e.g.: app.get('/start', renderViewMiddleware); it does.

http://localhost:3000/start

Why would that be?

Thank you,

Uli
Elyse Kolker Gordon (13) [Avatar] Offline
#2
Hi,

When I follow the instructions in the chapter - switch to the server-browser-rendering branch and add the code from the listing (I'm assuming you're referring to listing 14), it works as expected.

Can you send me any errors you see in the terminal or browser console? Can you tell me if you were following along with the entire chapter or switching git branches in each section?

Thanks,
Elyse
Elyse Kolker Gordon (13) [Avatar] Offline
#3
Hi again,

I was able to reproduce your issue and have pushed a fix for it (the order of the static file loading vs the Express routes was incorrect). This should be update to date now in the repo and I will make sure the chapter gets any updates needed.