Debug: Agregar plugin de error handler y más logging
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m5s

- Crear plugin error-handler.ts para capturar todos los errores
- Captura errores de app:error, vue:error y errorHandler
- Agregar logs en script setup de componentes
- Logs antes y después de llamar a useLotes()
- Esto nos mostrará exactamente dónde crashea la app
This commit is contained in:
2025-11-21 23:42:08 -06:00
parent b0b179d945
commit bd31838139
3 changed files with 29 additions and 2 deletions

View File

@@ -103,6 +103,8 @@
<script setup lang="ts">
import type { Lote } from '~/composables/useLotes'
console.log('🟢 LotesTable: <script setup> ejecutándose')
const emit = defineEmits<{
create: []
view: [lote: Lote]
@@ -110,7 +112,9 @@ const emit = defineEmits<{
trazabilidad: [lote: Lote]
}>()
console.log('🟢 LotesTable: Llamando a useLotes()...')
const { fetchLotes, TIPOS_LOTE } = useLotes()
console.log('🟢 LotesTable: useLotes() completado')
const lotes = ref<Lote[]>([])
const loading = ref(false)