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

751
Views
Error: Could not find matching close tag for "<%=" in ejs route

I am getting this error when using .ejs routes and it doesn't seem to come from the code but from the ejs pack

Error: Could not find matching close tag for "<%=".
at E:\...\Main\node_modules\ejs\lib\ejs.js:740:19
at Array.forEach (<anonymous>)
at Template.generateSource (E:\...\Main\node_modules\ejs\lib\ejs.js:730:15)
at Template.compile (E:\...\Main\node_modules\ejs\lib\ejs.js:585:12)
at Object.compile (E:\...\Main\node_modules\ejs\lib\ejs.js:396:16)
at handleCache (E:\...\Main\node_modules\ejs\lib\ejs.js:233:18)
at tryHandleCache (E:\...\Main\node_modules\ejs\lib\ejs.js:272:16)
at View.exports.renderFile [as engine] (E:\...\Main\node_modules\ejs\lib\ejs.js:489:10)
at View.render (E:\...\Main\node_modules\express\lib\view.js:135:8)
at tryRender (E:\...\Main\node_modules\express\lib\application.js:640:10)

I tried checking where the error occured but it is not very clear to me as I am new to coding. If it can help, here is where I use the <%= %>

    <img src="<%= profile.data[0].stats.rank.metadata.iconUrl %>" alt="<%= profile.data[0].stats.rank.metadata.tierName %>" style="height:4rem;width:4rem;margin-right:.5rem;">
<div>
  <span class="valorant-highlighted-stat__label">
    <%= profile.data[0].stats.rank.displayName %>
  </span><br>
  <span class="valorant-highlighted-stat__value">
    <%= profile.data[0].stats.rank.metadata.tierName %>
  </span>
</div>    
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

try <%- profile.data[0].stats.rank.displayName %> - instead of =

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!