authenticationIntro
authenticationIntro copied to clipboard
path is undefined
Hello, I'm not working from this repo, am just following along with the article you wrote and incorporating into a different project, so I may be wrong but I think I found a bug.
In this file the get request uses path.join but the path module hasn't been required and I couldn't see how else in could be included.
P.S Great article 👍
You should only need to add var path = require('path');
to your router.js
.
@ButsAndCats @jgibson02 I ran the app successfully as is without adding the path variable. I wanna say that I read somewhere that you no longer need to require the path module but am unable to find the URL to support it. I'm unsure why the app isn't crashing since path would be undefined at that line so perhaps one doesn't need to declare it...