PWA Guidance Modal Invisible on Vercel Build (Vite + React + Tailwind) #201560
Replies: 3 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
This comment was marked as duplicate.
This comment was marked as duplicate.
-
|
One thing worth adding to the checklist above: if you're on Tailwind v4, the content: [...] array and JS-based plugin registration (plugins: [require('tailwindcss-animate')]) don't work the same way anymore. v4 does automatic content detection and plugins get registered in CSS via @plugin "tailwindcss-animate"; inside your main CSS file, not in a JS config object. If you migrated a v3 project (or copied a template) without updating that, classes like animate-in/fade-in/zoom-in-95 will silently never get generated — no error, they just won't exist in the output CSS, which matches "invisible in production, presumably fine to write." Quick way to confirm: search your built CSS output for animate-in — if it's not in there, that's your answer, and it's a config issue, not a React/state issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
Body
Subject: PWA Installation Guidance Modal is Invisible on Deployed Vite + React + Tailwind App on Vercel
Hi everyone,
I am a solo developer finalizing a Progressive Web App (PWA) built with Vite, React, and Tailwind CSS, deployed on Vercel.
My codebase is healthy, my manifest.json and sw.js are tracking properly inside the public folder, and the application opens flawlessly on mobile and desktop via direct URL routing.
However, my custom installation guidance modal component inside Header.tsx is completely invisible on all viewports (both mobile and laptop). The component logic sets a useState toggle to 'true' on load, but nothing renders visually on screen.
I suspect my Tailwind configuration is purging the custom layout classes or failing to compile the animation wrappers ("animate-in fade-in zoom-in-95").
Here is my Header.tsx file layout: https://github.com
Has anyone experienced Tailwind selectively purging custom state modal nodes on Vercel production builds? Any guidance on resolving this layout visibility bottleneck would be greatly appreciated!
Thank you!
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions