themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS
https://flowbite-react.com
MIT License
1.84k stars 411 forks source link

Wrong tailwind.config.ts On Instruction for NextJS! #1158

Closed alvindera97 closed 9 months ago

alvindera97 commented 9 months ago

https://github.com/themesberg/flowbite-react/blob/c51552a2e63e3f2709b0ee8aef5f7cedc3234941/content/docs/getting-started/nextjs.mdx#L37C16-L37C16

Please update to: content: ['./node_modules/flowbite-react/lib/**/*.js', './pages/**/*.{ts,tsx}', './public/**/*.html'],

as that's the only thing that worked and made my nextjs project compile (nextjs 14.0.03).

I noticed that the starter project had a different value for content:

https://github.com/tulupinc/flowbite-next-starter/blob/7ce8ac533bc2910512d6a9dbefc30701c93ea43b/tailwind.config.ts#L5

tulup-conner commented 9 months ago

Thanks for catching this - do you have the time to make a PR for this? Would be very helpful. Thank you!

chocoscoding commented 9 months ago

I could do one, just assign me to it.🙇‍♂️

tulup-conner commented 9 months ago

@chocoscoding I'm not sure why people assume otherwise, but you are always welcome to work on any issue without needing to be assigned. PRs are always welcome

chocoscoding commented 9 months ago

@chocoscoding I'm not sure why people assume otherwise, but you are always welcome to work on any issue without needing to be assigned. PRs are always welcome

thanks for the clarification

chocoscoding commented 9 months ago

@tulup-conner

Its the main tailwind config that needs to be updated and not the docs right?

Also, can content be : content: ['./node_modules/flowbite-react/lib/**/*.js', './pages/**/*.{ts,tsx}', './public/**/*.html', "./app/**/*.{ts,tsx}"],

so it works for both app and src directory

chocoscoding commented 9 months ago

@tulup-conner i would like a response