You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Advanced Node and Express - Set up a Template Engine" passes as correct despite wrong solution #38404
help wantedOpen for all. You do not need permission to work on these.scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.
Describe your problem and how to reproduce it:
When setting up Pug for the first time, even though I didn't choose to render the index.pug page, but sent it (using app.sendFile), the FCC checker passed my solution as correct.
This is especially confusing for a beginner as the boilerplate comes with res.sendFile as a default, simply changing the path results in the behavior shown in the screenshots below.
@mehanix, thank you for reporting this. We should try to test for cases where campers don't update the res.sendFile(...) line to res.render(...) as mentioned in the instructions.
Also thank you @jeremyfiel for submitting PRs for this challenge. I'll leave some comments over in each of them.
hi @SKY020 we've submitted another pr to relax the regex a bit more. it's pending review.
I believe the single period (relative path) the way you've written it doesn't work in even the glitch app. It's pointing at the wrong path. should be .. or just /pug
help wantedOpen for all. You do not need permission to work on these.scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.
Activity
jeremyfiel commentedon Apr 19, 2020
I've submitted PR's for {freeCodeCamp/boilerplate-advancednode/pull/9} & {/pull/38572} as part of this fix.
scissorsneedfoodtoo commentedon Apr 20, 2020
@mehanix, thank you for reporting this. We should try to test for cases where campers don't update the
res.sendFile(...)line tores.render(...)as mentioned in the instructions.Also thank you @jeremyfiel for submitting PRs for this challenge. I'll leave some comments over in each of them.
jeremyfiel commentedon Apr 28, 2020
fixed in the latest merge. Ok to close.
ShaunSHamilton commentedon Apr 29, 2020
There is still an issue of the test not passing with correct solutions:
OR
jeremyfiel commentedon Apr 29, 2020
hi @SKY020 we've submitted another pr to relax the regex a bit more. it's pending review.
I believe the single period (relative path) the way you've written it doesn't work in even the glitch app. It's pointing at the wrong path. should be .. or just /pug