After attempting to import a component from Flowbite React library, the following error occurred:
Cannot find module 'flowbite-react' or its corresponding type declarations.ts(2307)
Here is a glimpse of how the files are structured in node_modules
In the index.d.ts located in flowbite-react/dist/types, these are the contents:
export * from "./components/Accordion";
export * from "./components/Alert";
...
export * from "./components/Tooltip";
export * from "flowbite-react/dist/types/hooks/use-theme-mode";
export * from "./theme";
export { createTheme } from "./helpers/create-theme";
export { getTheme, getThemeMode } from "./theme-store";
What steps should be taken to resolve this issue?