Show your full vite config
Laravel 10 - Vite keep getting error " Could not auto-determine entry point"
Hello,
I'm currently trying to set up a new Laravel 10 project, with Vite. The project is creating from scratch, it's not an update from a previous Laravel version. I'm running it with Wampserver and a virtual host (maybe it's important in this case). Thing is I'm having a hard time with Vite and can't find any answer to my problem. When I use the npm run dev, I keep getting the same error :
(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.
VITE v4.1.2 ready in 564 ms
➜ Local: localhost:5173
➜ Network: use --host to expose
➜ press h to show help
LARAVEL v10.0.3 plugin v0.7.4
➜ APP_URL: sortilegeslaravel10
I think because of the "Could not auto-determine entry point...", my resources are not built. Note that it works fine with npm run build.
I thought maybe it's because my APP_URL was not the same as the Local from Vite ? Therefore, I tried to add in my Vite config file :
server: {
host: 'sortilegeslaravel10',
},
...And the Local address of Vite changed as intended, but the error persists. My node is up to date. Node is 18.14.0, npm is 9.5.0. Do you have any idea? Thanks.
Please or to participate in this conversation.