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

118
Visualizações
app crashing after Importing Json file to nuxt app

So I'm trying to import local JSON file to my nuxt app and display it but the size of the file is really big (400mb) and the app keeps crashing or the website won't load at all.

I already tried using another smaller JSON file and it worked perfectly.The memory used when loading the app went from 250mb to 4gb so i thought the problem would probably be because the JSON is too big.

Is there any way i can reduce it s size or make the app load the file ? (I've seen some similar issues that suggested lazy loading the component that imports the json but i'm not sure if that really can help) Here's my import

<script>
import Repdata from "../report/report1.json"
export default {
  data() {
    return {
      Rep: Repdata
    };

}}
</script>
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