Skip to content

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. 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 App. Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. #491

@joaobeji

Description

@joaobeji
          this error just means you are trying to render something that is undefined. for example:
let MyComponent = undefined

return <MyComponent />

that will give you this error


Your placement makes sense.

After many days of fighting and looking for a solution, we were left with the components that were being called by "<Route path="/" element={} />", the error was because the "Home" component did not exist nothing, I just creat
Capturar
ed the home function and that's it, resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions