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>