Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

758
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda