“error” Código de respuesta

error

TypeError: Cannot read properties of undefined (reading 'student')
    at C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\StudentService.js:51:28
    at Layer.handle [as handle_request] (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\layer.js:95:5)
    at next (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\route.js:137:13)
    at Route.dispatch (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\route.js:112:3)
    at Layer.handle [as handle_request] (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\layer.js:95:5)
    at C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:281:22
    at Function.process_params (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:341:12)
    at next (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:275:10)
    at Function.handle (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:174:3)
    at router (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:47:12)
ARIYA PHENGPHON

error

let  x = N ;
 N ≤ 1000000 ,N ≥ 1;
for (i = 1 ,i <=N ,i++ ); {
if(i % 2 === 0){
    console.log('even')
} else if ( i % 2 !== 0); {
    console.log('odd')
}
}
Smriti

error

Error: C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\views\index.pug:21:1
    19|     </nav>
    20|     
  > 21|    <h1>This is heading</h1>
--------^
    22|    <p> 
    23|    | #{content}   
    24|    | <!--   This is a plain html using pug --></p> 

Inconsistent indentation. Expecting either 0 or 4 spaces/tabs.
    at makeError (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-error\index.js:34:13)
    at Lexer.error (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-lexer\index.js:62:15)
    at Lexer.indent (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-lexer\index.js:1515:18)
    at Lexer.callLexerFunction (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-lexer\index.js:1647:23)
    at Lexer.advance (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-lexer\index.js:1688:12)
    at Lexer.callLexerFunction (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-lexer\index.js:1647:23)
    at Lexer.getTokens (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-lexer\index.js:1706:12)
    at lex (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-lexer\index.js:12:42)
    at Object.lex (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug\lib\index.js:104:9)
    at Function.loadString [as string] (C:\Users\ASUS\OneDrive\Desktop\NodeJs2\Express\node_modules\pug-load\index.js:53:24)
Yojit Dubey

error

TypeError: Cannot read properties of undefined (reading 'student')
    at C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\StudentService.js:51:28
    at Layer.handle [as handle_request] (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\layer.js:95:5)
    at next (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\route.js:137:13)
    at Route.dispatch (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\route.js:112:3)
    at Layer.handle [as handle_request] (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\layer.js:95:5)
    at C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:281:22
    at Function.process_params (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:341:12)
    at next (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:275:10)
    at Function.handle (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:174:3)
    at router (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:47:12)
ARIYA PHENGPHON

error

TypeError: /home/ec2-user/views/pages/dashboard/dashboard.ejs:222
    220|                         <tbody>
    221|                           <%if(last_table && last_table !=  '' && last_table !=  'null'){%>
 >> 222|                           <%last_table.forEach(user=>{%>
    223|                           <% if(user.imageurl != null){%>
    224|                           <tr>
    225| 

last_table.forEach is not a function
    at eval ("/home/ec2-user/views/pages/dashboard/dashboard.ejs":114:18)
    at dashboard (/home/ec2-user/node_modules/ejs/lib/ejs.js:692:17)
    at tryHandleCache (/home/ec2-user/node_modules/ejs/lib/ejs.js:272:36)
    at View.exports.renderFile [as engine] (/home/ec2-user/node_modules/ejs/lib/ejs.js:489:10)
    at View.render (/home/ec2-user/node_modules/express/lib/view.js:135:8)
    at tryRender (/home/ec2-user/node_modules/express/lib/application.js:640:10)
    at Function.render (/home/ec2-user/node_modules/express/lib/application.js:592:3)
    at ServerResponse.render (/home/ec2-user/node_modules/express/lib/response.js:1012:7)
    at ServerResponse.res.render (/home/ec2-user/node_modules/express-flash/lib/express-flash.js:29:16)
    at /home/ec2-user/routes/dashboardRoute.js:39:28
Dark Deer

error

Cannot GET /html/html/services.html
Eager Emu

error

TypeError: Cannot read properties of undefined (reading 'student')
    at C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\StudentService.js:51:28
    at Layer.handle [as handle_request] (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\layer.js:95:5)
    at next (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\route.js:137:13)
    at Route.dispatch (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\route.js:112:3)
    at Layer.handle [as handle_request] (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\layer.js:95:5)
    at C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:281:22
    at Function.process_params (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:341:12)
    at next (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:275:10)
    at Function.handle (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:174:3)
    at router (C:\html\ITCS212-WebProg\Lab-L09-Sec2-6388040\node_modules\express\lib\router\index.js:47:12)
ARIYA PHENGPHON

Respuestas similares a “error”

Preguntas similares a “error”

Más respuestas relacionadas con “error” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código