Skip to content

Element type is invalid #41

@lukBakTsh

Description

@lukBakTsh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions