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

Element type is invalid #41

Open
lukBakTsh opened this issue Jan 17, 2020 · 0 comments
Open

Element type is invalid #41

lukBakTsh opened this issue Jan 17, 2020 · 0 comments

Comments

@lukBakTsh
Copy link

Description

After updating react-native to 0.61.4, the following error appears:

Invariant Violation: 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.

Reproducible Demo

import { Calendar } from 'react-native-general-calendars';

const Component = () => {
  return (
    <Calendar
      markedDates={{ '2012-05-17': { marked: true } }}
    />
  );
};

Environment

  • react-native 0.61.4 (Expo SDK 36.0.0)
  • react-native-general-calendars 1.11.0
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

No branches or pull requests

1 participant