Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Loading Issue with Prime Version 10.0.3 #5120

Closed
meriemMat opened this issue Oct 19, 2023 · 13 comments
Closed

CSS Loading Issue with Prime Version 10.0.3 #5120

meriemMat opened this issue Oct 19, 2023 · 13 comments
Assignees
Labels
Component: Tailwind Tailwind specific issue Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@meriemMat
Copy link

meriemMat commented Oct 19, 2023

CSS Loading Issue with Prime Version 10.0.3

i am having this ui shwoing quiqly then the css is correctly set :
Sans titre
Any idea about the cause?

@meriemMat meriemMat added Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request labels Oct 19, 2023
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 19, 2023
@meriemMat meriemMat changed the title Replace_With_Component_Name: Brief_Description CSS Loading Issue with Prime Version 10.0.3 Oct 19, 2023
@melloware
Copy link
Member

@meriemMat try 10.0.5 which was just released but most likely its the order of your CSS imports in your chosen bundler such as NetxJS etc. PrimeReact 10 added a new @layer to its CSS to reduce its importance.

@melloware melloware added Status: Needs Reproducer Issue needs a runnable reproducer and removed Type: New Feature Issue contains a new feature or new component request Status: Discussion Issue or pull request needs to be discussed by Core Team Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 19, 2023
@github-actions
Copy link

Please fork the CodeSandbox project or Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

@aholeye
Copy link

aholeye commented Oct 25, 2023

I hava the same issue with 10.0.5:
image

@aholeye
Copy link

aholeye commented Oct 25, 2023

See this: https://soydiego.notion.site/PrimeReact-How-to-fix-styles-NextJS-Tailwind-92bec3eb91594388a7be67d922460eaf

Only when the page is loading does it appear as shown in the picture, and then it immediately displays correctly.
So, the doc doesn't work for me.

@melloware
Copy link
Member

@SoyDiego ?

@SoyDiego
Copy link
Contributor

Share a Stackblitz to see if we can help @aholeye @meriemMat

@aholeye
Copy link

aholeye commented Oct 25, 2023

@SoyDiego @melloware Thanks for your reply.
I create a sandbox link, used Next js templeate. And then I installed two dependencies, which are primeicons and primereact.
I replaced the default code with the Pagination component. Waiting for the server to start completely, and you can reproduce the issue by refreshing the page.
There is the sandbox link: https://codesandbox.io/p/sandbox/agitated-butterfly-td3m97?file=%2Fapp%2Fpage.tsx%3A6%2C33
Thanks again.

@SoyDiego
Copy link
Contributor

@SoyDiego @melloware Thanks for your reply. I create a sandbox link, used Next js templeate. And then I installed two dependencies, which are primeicons and primereact. I replaced the default code with the Pagination component. Waiting for the server to start completely, and you can reproduce the issue by refreshing the page. There is the sandbox link: https://codesandbox.io/p/sandbox/agitated-butterfly-td3m97?file=%2Fapp%2Fpage.tsx%3A6%2C33 Thanks again.

Sorry I don't know the solution :(

@melloware
Copy link
Member

@aholeye it doesn't look like you followed the Tailwind instructions? https://primereact.org/tailwind/

@melloware melloware added the Component: Tailwind Tailwind specific issue label Oct 27, 2023
@gucal gucal added this to the 10.0.10 milestone Nov 8, 2023
@gucal
Copy link
Member

gucal commented Nov 10, 2023

Hi there,

Before proceeding, it's highly recommended that you visit primereact.org/tailwind and carefully review the available documentation.

You can use this repo (https://github.com/primefaces/primereact-examples/tree/main/nextjs-styled-tailwind) as a base for the correct setup.

If your problem continues to persist, please don't hesitate to inform us.

Thank you.

@melloware
Copy link
Member

@aholeye your issue is FOUC: #5188

@melloware
Copy link
Member

I will close this for now as its basically a duplicate of #5188

@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Nov 10, 2023
@melloware melloware removed this from the 10.0.10 milestone Nov 10, 2023
@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Reproducer Issue needs a runnable reproducer labels Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Tailwind Tailwind specific issue Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

6 participants