If it works in the first commit you should be able to find the specific commit relatively easy
Laravel & InertiaJS not compiling
I'm trying to put my app on the cloud for production but I can't build it using the npm run build command. It is throwing the following error in the cli:
@pMattheew ➜ /workspaces/meinsherpa (main) $ npm run build
> build
> vite build
vite v3.2.2 building for production...
✓ 0 modules transformed.
Could not resolve entry module (index.html).
error during build:
Error: Could not resolve entry module (index.html).
at error (file:///workspaces/meinsherpa/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
at ModuleLoader.loadEntryModule (file:///workspaces/meinsherpa/node_modules/rollup/dist/es/shared/rollup.js:22175:20)
at async Promise.all (index 0)
when I return to the first commit of my branch I can compile it running this command, so this is probably a little mess that I did somewhere, but I spent so many hours trying to solve it that my mind is blocked to solve this now, someone can help me with this?
@Sinnbeck thank you so much for your help! Today with more calm I could examine it closer following your steps and I could find the reason why it was not compiling.
In this project I had to move my vite.config.js to a new folder, vite/vite.config.js, to store some related scripts within, and when running the vite build command it also asks for the config file, but it wasn't being passed in my npm script. I've configured it for my dev server before with vite -c ./vite/vite.config.js but not for my build command. So doing it solved my issue! Thanks!
Please or to participate in this conversation.