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

261
Vistas
Vue3: Uncaught (in promise) Error: Module parse failed: Unexpected character '�' (1:0)

For two days I tried to solve this problem. It displays nothing and writes - "You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file."

I am using this code to grab a static PNG, jpg and png image with file-loader, but it still doesn't work, I lost all hope

module.exports = {
  module: {
    rules: [
      {
        test: /\.(jpg|PNG|png|jpe?g|gif)$/i,
        use: [
          {
            loader: 'file-loader',
          },
        ],
      },
    ],
  },
};

and also

<template>
  <img :src="checkUri"/>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
      required: true,
    }
  },
///
  computed: {
    checkUri() {
      return require('../assets/image/items/' + this.item.img)
    }
  }
}
</script>

in my component

about 4 years ago · Santiago Trujillo
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