Skip to content

Invariant Violation: "main" has not been registered. #32

@velikivelicu

Description

@velikivelicu

Hello, I've installed the module using npm i --save "mooncake-dev/react-day-time-picker" --legacy-peer-deps in my react-native mobile app project.

As soon as I try to bundle the code I get:

Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` 
wasn't called.

Is it due to the deps it has? package.json has the following lines:
"react": "17.0.2", "react-dom": "17.0.2", "react-native": "0.68.2",

Thanks, hope to hear from you soon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions