showing results for - "errormessage is not defined"
Cristina
31 Jan 2019
1<% if (locals.errorMessage != null) { %>
2    <%= errorMessage %>
3<% } %>
Valery
20 Jan 2020
1<% if (locals.errorMessage != null) { %>
2    <%= errorMessage %>
3<% } %>
Paula
19 Jan 2018
1<% if (locals.errorMessage != null) { %>
2    <%= errorMessage %>
3<% } %>
Eduardo
12 Feb 2020
1ReferenceError: C:\Users\User\Desktop\aLibraryApp\views\layouts\layout.ejs:11    9| <body>
2    10|     <%- include("../partials/header") %> 
3 >> 11|     <%- include("../partials/errorMessage") %> 
4    12|     <%- body %> 
5    13| </body>
6    14| </html>C:\Users\User\Desktop\aLibraryApp\views\partials\errorMessage.ejs:1 >> 1| <%= errorMessage %> errorMessage is not defined    at eval (eval at compile (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:662:12), <anonymous>:10:26)    at errorMessage (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:692:17)    at include (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:690:39)    at eval (eval at compile (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:662:12), <anonymous>:15:17)    at layout (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:692:17)    at tryHandleCache (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:272:36)    at View.exports.renderFile [as engine] (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:489:10)    at View.render (C:\Users\User\Desktop\aLibraryApp\node_modules\express\lib\view.js:135:8)    at tryRender (C:\Users\User\Desktop\aLibraryApp\node_modules\express\lib\application.js:640:10)    at Function.render (C:\Users\User\Desktop\aLibraryApp\node_modules\express\lib\application.js:592:3)    at ServerResponse.render (C:\Users\User\Desktop\aLibraryApp\node_modules\express\lib\response.js:1012:7)    at C:\Users\User\Desktop\aLibraryApp\node_modules\express-ejs-layouts\lib\express-layouts.js:113:20    at tryHandleCache (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:278:5)    at View.exports.renderFile [as engine] (C:\Users\User\Desktop\aLibraryApp\node_modules\ejs\lib\ejs.js:489:10)    at View.render (C:\Users\User\Desktop\aLibraryApp\node_modules\express\lib\view.js:135:8)    at tryRender (C:\Users\User\Desktop\aLibraryApp\node_modules\express\lib\application.js:640:10)