Error When using Dropdown or Panel Components
Posted: 04 Mar 2021, 20:32
Hi,
I have installed PrimeReact, I can get certain components like Card/Text input working but when I try to use things like Dropdown or Panel I get the below error:
Unhandled Rejection (Error): Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `DropdownPanelComponent`.[/code][/code]
Does anyone have any idea what I can do to resolve this please?
I have installed PrimeReact, I can get certain components like Card/Text input working but when I try to use things like Dropdown or Panel I get the below error:
Unhandled Rejection (Error): Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `DropdownPanelComponent`.[/code][/code]
Does anyone have any idea what I can do to resolve this please?