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

761
Visualizações
laravel vue pagination Property "$createElement" was accessed during render but is not defined on instance

I am trying to use laravel vue pagination on my vue3 typescript app

https://github.com/gilbitron/laravel-vue-pagination

I have installed the library and registered it on my index.ts

<template>
   <div>
    <table>
    <tr v-for="(hub, index) in hubs" :key="index">
      <td>{{ index + 1 }}</td>
      <td>{{ hub.name }}</td>
     <td>{{ hub.contact_address }}</td>
    </tr>
   </table>
    <pagination :data="hubs" @pagination-change-page="getResults"></pagination>
   </div>
</template>

Javascript

<script lang="ts">
export default {
  name: "AllHubs",
  setup() {
   let hubs = {}
 onMounted(() => {
      getResults();
    });

    const getResults = (page = 1) => {
      Admin.getAllHubs(1)
        .then((response) => {
          hubs = response.data;
        })
        .catch((error) => {

        })
        .finally(() => {

        });
    };
}

Error

[Vue warn]: Property "$createElement" was accessed during render but is not defined on instance. 
  at <AllHubs onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <RouterView> 
  at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <RouterView> 
  at <App>
about 4 years ago · Juan Pablo Isaza
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