Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

196
Vistas
Image is not shown in the popup

Using the starter template https://github.com/antfu/vitesse-webext for creating chrome extension. I tried to show an image in the popup but its not resolved properly. I have put the pass.png at same location as Popup.vue

Popup.vue

<template>
  <div class="w-[300px] px-4 py-5 text-center text-gray-700">
    <Logo />
    <div>WebExt <span class="opacity-50">v. 1.0</span></div>
    <p class="mt-2">
      Some description here...
      <img src="./pass.png" />
    </p>
  </div>
</template>

When clicking the icon to show the popup, its not resolved and the code shown like enter image description here enter image description here

Edit: Event if I use <img src="pass.png" /> its not resolved

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Change it to

<img src="pass.png">
about 4 years ago · Juan Pablo Isaza Denunciar

0

Try out to import it then bind it to the img src :

<template>
  <div class="w-[300px] px-4 py-5 text-center text-gray-700">
    <Logo />
    <div>WebExt <span class="opacity-50">v. 1.0</span></div>
    <p class="mt-2">
      Some description here...
      <img :src="imgUrl" />
    </p>
  </div>
</template>
<script setup >
import imgUrl from './pass.png'

</script
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda