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

module useIsMounted in DarkThemeToggle not found #1182

Closed
2 tasks done
newarifrh opened this issue Dec 12, 2023 · 1 comment
Closed
2 tasks done

module useIsMounted in DarkThemeToggle not found #1182

newarifrh opened this issue Dec 12, 2023 · 1 comment

Comments

@newarifrh
Copy link
Contributor

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

  1. bun i [email protected]
  2. bun run dev

Current behavior

./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

import { useIsMounted } from '~/src/hooks/use-is-mounted';

Expected behavior

change import to

import { useIsMounted } from '../../hooks/use-is-mounted';

@newarifrh
Copy link
Contributor Author

newarifrh commented Dec 12, 2023

thank you @SutuSebastian 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant