Closed AntonAndreevichMoroz closed 8 months ago
Maybe you could change the path to only import the esm
module on your tailwind.config.js
?
./node_modules/flowbite-react/esm/**/*.js
// or
./node_modules/flowbite-react/lib/esm/**/*.js
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:
content: [
"./src/**/*.{js,ts,jsx,tsx,mdx}",
"./node_modules/flowbite-react/lib/esm/**/*.js"],
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:
Is this a limitation of the free version?
No, this is a known issue, it compiles all the .js
files that it finds and at the moment there are more than they should be (a fix is on the way already), hence the large amount of time waiting to compile everything.
Steps to reproduce
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?