tulupinc / flowbite-next-starter

flowbite-next-starter.vercel.app
164 stars 91 forks source link

Error in setup of project in next.js #58

Closed tsemachh closed 6 months ago

tsemachh commented 6 months ago

Hi Followed the installation instructions but I got for the NavBar and DropDown same errors: Error: Could not find the module "C:\dev\cms\flowbite\flowbite\node_modules\flowbite-react\dist\esm\components\Navbar\Navbar.mjs#Navbar#Brand" in the React Client Manifest. This is probably a bug in the React Server Components bundler.

Those are the project deps: "dependencies": { "flowbite": "^2.3.0", "flowbite-react": "^0.8.0", "next": "14.1.4", "react": "^18", "react-dom": "^18" }, "devDependencies": { "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", "autoprefixer": "^10.4.19", "eslint": "^8", "eslint-config-next": "14.1.4", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", "typescript": "^5" }

tsemachh commented 6 months ago

Managed to solve it by using variant of the example as stated at: https://flowbite-react.com/docs/getting-started/server-components In my case using: import { Dropdown , DropdownItem } from "flowbite-react";