Open NuPhan123 opened 4 years ago
I have the same problem...
i cant register
you should do this: <% include ('partials/messages') %>
I have the same problem...
Please try this: <% include ('partials/messages') %>
I have the issue too, <% include ('partials/messages') % resolves the error but won't fix it. The errors won't display as his tutorial show.
I have the issue too, <% include ('partials/messages') % resolves the error but won't fix it. The errors won't display as his tutorial show.
It did work, however you have to keep the hyphen in the code like so: <%- include ('partials/messages') %>
<%- include ('partials/messages') %> include hyphen in the statement
<%- include ('partials/messages') %> include hyphen in the statement
is not working
<%- include('partials/messages') %> worked for me
I have the same problem. None of the solutions work.
Same issue here <%- include('partials/messages') %> is not working for me it showing the same error
Guys use this it wroked for me <%- include ('./partials/messages'); %> I think newer version on ejs supports this format. Don't forget to add -(hyphen) in beg. and a semicolon ;
Guys use this it wroked for me <%- include ('./partials/messages'); %> I think newer version on ejs supports this format. Don't forget to add -(hyphen) in beg. and a semicolon ;
It didn't work for me so what I did was instead of making a separate file for messages I replaced <%- include ('./partials/messages'); %> with the contents in message.ejs
Guys use this it wroked for me <%- include ('./partials/messages'); %> I think newer version on ejs supports this format. Don't forget to add -(hyphen) in beg. and a semicolon ;
It didn't work for me so what I did was instead of making a separate file for messages I replaced <%- include ('./partials/messages'); %> with the contents in message.ejs
still not working.
not working still.. it says success_msg is not defined
Ok guys, I was receiving the exact same error message an hour ago and just got it to work. To fix the first error, you have to go <%- include("partials/messages") -%> To fix the success_msg is not defined error, make sure your router, app.use('/', require('./routes/index.js')); and app.use('/users', require('./routes/users.js'));, is below app.use(flash()) like how Brad has it in the repo. If you're getting an error message like req.flash() is not a function, changing the router position is also the fix. Hope this helped
This worked for me
<%- include("partials/messages") %>
Same issue here <%- include('partials/messages') %> is not working for me it showing the same error
you need write like this : <%- include ('./partials/messages') %> you miss the -- > './' before partials
Thank you very much ^^
T.Null
Vào 18:28, Th 5, ngày 13 tháng 8 năm 2020 eidan66 notifications@github.com đã viết:
Same issue here <%- include('partials/messages') %> is not working for me it showing the same error
you need write like this : <%- include ('./partials/messages') %> you miss the -- > './' before partials
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bradtraversy/node_passport_login/issues/52#issuecomment-673422434, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANP4NSC2UQBSPIGDVI7EQV3SAPE6RANCNFSM4JBBXCYA .
@NuPhan123 To fix this error you need to understand why it is happening
just use this <%- include ./partials/messages %>
Hope this worked...
Use this syntax , It will work <%- include ("./partials/messages"); %>
Try <% include ./partials/messages %> for me works.
I have the same problem ,and i have tried almost all the solution above, such as <% include ./partials/messages %> <%- include ("./partials/messages"); %> <%- include('./partials/messages'); %> , but none of them work. and finally i realized its not about the include statement , it's about the messages.ejs there is some grammer mistake that i made in the messages.ejs ,after correct that grammer error, things get work
probably you have not included partials .. you can show your file structure ..or just delete <% include ./partials/messages %> this line from both login and register file it will work . but no css will be included
The error is the blank space after the include
go to views > partials > register.js
and change <%- include ("./partials/messages"); %>
to <%- include("./partials/messages"); %>
thanks for all the solutions provided above, <%- include("./partials/messages"); %> this worked for me.
Use this syntax , It will work <%- include ("./partials/messages"); %>
thanks it helped.
i cant register