Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

338
Views
texto inesperado ", en el archivo pug javascript

Tengo el siguiente error. No sé cómo arreglarlo. Soy nuevo en el manejo de archivos pug. Está mostrando el siguiente error:

 Error: /home/nobin/jadeApp/views/show_message.pug:9:33 7| else 8| h3 New person, > 9| name: #{person.name}, ---------------------------------------^ 10| age: #{person.age} and 11| nationality: #{person.nationality} added! unexpected text ", " at makeError (/home/nobin/jadeApp/node_modules/pug-error/index.js:34:13) at Lexer.error (/home/nobin/jadeApp/node_modules/pug-lexer/index.js:62:15) at Lexer.fail (/home/nobin/jadeApp/node_modules/pug-lexer/index.js:1629:10) at Lexer.advance (/home/nobin/jadeApp/node_modules/pug-lexer/index.js:1694:12) at Lexer.callLexerFunction (/home/nobin/jadeApp/node_modules/pug-lexer/index.js:1647:23) at Lexer.getTokens (/home/nobin/jadeApp/node_modules/pug-lexer/index.js:1706:12) at lex (/home/nobin/jadeApp/node_modules/pug-lexer/index.js:12:42) at Object.lex (/home/nobin/jadeApp/node_modules/pug/lib/index.js:104:9) at Function.loadString [as string] (/home/nobin/jadeApp/node_modules/pug-load/index.js:53:24) at compileBody (/home/nobin/jadeApp/node_modules/pug/lib/index.js:82:18)

Mi archivo show_message.pug:

 html head title Person body if(type == "error") h3(style = "color:red") #{message} else h3 New person, name: #{person.name}, age: #{person.age} and nationality: #{person.nationality} added!
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Bueno, tampoco tengo ninguna competencia, pero según su error, es posible que desee intentar eliminar la coma al final de

 . . name: #{person.name},

a

 . . name: #{person.name}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!