Laravel/Vue: JS Heap Out of Memory after migrating from Laravel 8 to 9
I migrated an old Laravel project from version 8 to 9 and start using Vite to bundle the application because it was using Laravel Mix.
The Laravel Vite dev server starts normally but it's getting stuck when I try to access a route which is using the Vue app, after a few minutes the terminal throws this error: JS Heap Out of Feature.
I already added the @vite directive, setup the laravel-vite-plugin correctly, deleted the cache but it continues giving this error, I looked on the network tab in the developers tools and it's getting stuck loading the app.js file and @vite/client.
What can I to fix this error? Could it be a problem accessing the server?
I'm on WSL2 + Ubuntu 22.0.4.1. I'm trying to migrate the project gradually to the latest Laravel version.
Please or to participate in this conversation.