After migration flowbite-react is not working
I migrated from version 0.11 to 0.12. Following the steps, I managed to fix everything except for flowbite-react. I'm not sure if the issue lies with the library or my migration process, so I'll explain the whole process. First, I added Tailwind CSS by creating
tailwind.config.cjs
and postcss.config.cjs
files. After that, I imported Tailwind CSS into the CSS file and enabled Tailwind to work.
Following the documentation for installing dependencies, I installed flowbite-react with the command npm install -D flowbite-react
. Then, I added the flowbite plugin to tailwind.config.cjs
so it looks like this:
after wasp start
it is not working. I have attached example of Navbar how it looks after migration and how it was looking on version 0.11.
I have tried installing npm i autoprefixer postcss tailwindcss flowbite
, installing flowbite-react as non dev dependency but none of that works.
I have created side React project with Vite to make sure i have installed flowbite-react properly on non Wasp project following flowbite-react documentation.
Do you have any suggestions how can I fix this? All of my components are made of flowbite-react components.5 Replies
Could you try modifying your
tailwind.config.js
to look like this:
Every path in the content array should be wrapped with resolveProjectPath
It works! Hvala puno! :boi:
Ništa, sretno s projektom 🙂
Hvala! Svaka vam cast na Wasp-u, dosta je intuitivno i dosta mi ubrzava rad. Samo tako nastavite!
Hah super za cuti, thanks :)!