📜  errorMessage 未定义 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:26.682000             🧑  作者: Mango

代码示例4
ReferenceError: C:\Users\User\Desktop\aLibraryApp\views\layouts\layout.ejs:11    9| 
    10|     <%- include("../partials/header") %> 
 >> 11|     <%- include("../partials/errorMessage") %> 
    12|     <%- body %> 
    13| 
    14| 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), :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), :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)