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

167
Views
vue3.2x use <script setup>, Build no resuelve las propiedades calculadas en: src="require()"

vue 3.2.31 use <configuración de script>

 <template> <img :src="require(`@/assets/images/icon_num_${state.lotteryNum}.png`)" alt="" /> </template> <script setup lang="ts"> import {reactive} from 'vue' const state = reactive({ lotteryNum:1, }) </script>

Cuando se ejecuta localmente, no hay problema. Pero después del empaquetado, la consola informará un error cuando se ejecute en línea.

ingrese la descripción de la imagen aquí

mensaje de error: Error de referencia: _unref no está definido

Traté de no usar <script setup>, no hay problema con la ejecución local y no hay problema con la ejecución después del empaquetado。

about 4 years ago · Juan Pablo Isaza
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!