DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 964,423 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Bruno Barros
Bruno Barros

Posted on

Fix: tailwind not working on Laravel 9 with Vite

If you having trouble loading your tailwind styles but and everything looks fine.

Try to add this line on your vite.config.js, it solve the problem for me.

Image description

This error happens when Vite doenst recognize the localhost as a server/host.

Top comments (1)

Collapse
 
brodev23 profile image
brodev23

yes its issues I tried both terminologies rather with vite and Using Laravel Mix. Tailwind get installed. But classes are not working properly. Hope this thing will solve in future. if it's done. than the work will be ease.

tailwindlaravelissues

Want to rep DEV and be comfy at the same time?

Check out our classic DEV shirt β€” available in multiple colors.