-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
Long compilation of Nextjs application after connecting flowbite-react #1193
Comments
Maybe you could change the path to only import the
I don't actually remember the correct path. :) |
Yea, I would try replacing the path by "./node_modules/flowbite-react/lib/esm/**/*.js" I'm not sure if that's the cause of your problem, if not, feel free to share a sample repo where you're having this issue so maybe we can figure that out. |
making this change in tailwind.config.js improved the situation for me:
|
I'm relating this issue to the documentation. We should update the instructions to fix the import path. |
Documentation is fixed in #1194. Now, to fix ur issue the correct tailwind config content path is: 'node_modules/flowbite-react/lib/esm/**/*.js' |
And to answer ur questions:
No, this is a known issue, it compiles all the |
Steps to reproduce
"./node_modules/flowbite-react/**/*.js"
Current behavior
The first page rendering and application assembly takes a very long time, several minutes
Expected behavior
Working with the framework without changing startup speed
Context
I tried deleting node-modules and .next folders, reinstalling the flowbite-react package. This doesn't solve the problem.
If I delete a line from tailwindcss config.js, then compilation happens quickly, but naturally the styles are not pulled up.
I also tried to take the components separately from the repository and place them in my project as src code. In this form, the components are also quickly assembled.
I'm using the latest lts version of nodejs and nextjs 14
Is this a limitation of the free version?
The text was updated successfully, but these errors were encountered: