Closed newarifrh closed 8 months ago
bun i flowbite-react@0.7.1
bun run dev
./node_modules/flowbite-react/lib/esm/components/DarkThemeToggle/DarkThemeToggle.js:5:0 Module not found: Can't resolve '~/src/hooks/use-is-mounted'
This may be due to wrong import in src/components/DarkThemeToggle/DarkThemeToggle.tsx
src/components/DarkThemeToggle/DarkThemeToggle.tsx
import { useIsMounted } from '~/src/hooks/use-is-mounted';
change import to
import { useIsMounted } from '../../hooks/use-is-mounted';
thank you @SutuSebastian 🙌
Steps to reproduce
bun i flowbite-react@0.7.1
bun run dev
Current behavior
This may be due to wrong import in
src/components/DarkThemeToggle/DarkThemeToggle.tsx
import { useIsMounted } from '~/src/hooks/use-is-mounted';
Expected behavior
change import to
import { useIsMounted } from '../../hooks/use-is-mounted';