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

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

Closed
alvindera97 opened this issue Nov 30, 2023 · 6 comments · Fixed by #1185
Closed

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

alvindera97 opened this issue Nov 30, 2023 · 6 comments · Fixed by #1185
Labels
📚 documentation Improvements or additions to documentation

Comments

@alvindera97
Copy link

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
Copy link
Collaborator

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

@tulup-conner tulup-conner added the 📚 documentation Improvements or additions to documentation label Nov 30, 2023
@chocoscoding
Copy link

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

@tulup-conner
Copy link
Collaborator

@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
Copy link

@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
Copy link

chocoscoding commented Dec 5, 2023

@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
Copy link

@tulup-conner i would like a response

tulup-conner added a commit that referenced this issue Dec 12, 2023
Leave a note about older versions for users running them.

resolve #1158
tulup-conner added a commit that referenced this issue Dec 12, 2023
Leave a note about older versions for users running them.

resolve #1158
tulup-conner added a commit that referenced this issue Dec 12, 2023
Leave a note about older versions for users running them.

resolve #1158
tulup-conner added a commit that referenced this issue Dec 12, 2023
Leave a note about older versions for users running them.

resolve #1158
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants