Open MahdiHamediRad opened 1 day ago
Others have had issues too. Remix is quite messy.
In fact see these on Remix: https://github.com/remix-run/remix/issues?q=is%3Aissue+primereact+is%3Aclosed
In fact see these on Remix: https://github.com/remix-run/remix/issues?q=is%3Aissue+primereact+is%3Aclosed
Thank you for your guidance. I checked these but it didn't work.
Yeah Remix is funky i don't think anyone has gotten PrimeReact to really work successfully with it.
Describe the bug
Hi there! I'm working on a project using Remix.js and have installed the Primereact library. I'm aiming to utilize the Tailwind mode within this library. Following the documentation, I've configured my project, but I'm encountering an issue. When I open the project in a browser and inspect it, the Tailwind classes aren't being applied to the Primereact components! However, when I make a minor change to the project (like adding some text), triggering a Hot Module Replacement (HMR) update, the Tailwind classes are loaded! In other words, the Tailwind classes aren't being added to the Primereact components on the server side.
Here are snippets from my relevant configuration files:
root.tsx:
tailwind.config.ts:
tailwind.css:
vite.config.ts:
I'd appreciate any guidance on resolving this. Thank you.
Reproducer
No response
System Information
Steps to reproduce the behavior
No response
Expected behavior
No response