Hi, i tried to start a new project with Laravel react starter kit and got an issue. The tailwind styles don't work. Using CDN helps, but that's not a solution.
I ran:
laravel new app # React, Built-in auth, Pest, No for npm install && npm build
cd app
npm install && npm run build
composer run dev
Idk why, This issue happening to me in Herd with React Starter Kit if I don't initialize git repo. But if I do git init then build the issue get fixed.
@Xinecraft I had the same issue when installing another starter kit. Perhaps my solution is very specific but the issue in my case was that I had a git repo in my home directory and with that I also had a .gitignore file with some rules that made the vite compilation step for some reason fail. Clearing those .gitignore rules made the problem go away. I don't know the exact reason that caused it but maybe if your project is inside a git repo(even if it is ignored by the repo), clearing some rules or moving the project outside a repo might solve the issue.