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 a..
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.
컴포넌트 최근에 추가한 것들 다시한번 살펴보자
나같은 경우 import { AppLoading } from 'expo-app-loading' 으로 썼다
expo-app-loading 에는 default export 로 되어있는데
{ } 을 통해 import 해서 저런 오류가 났다
즉 최근에 추가한 컴포넌트 중
{ }
잘 살펴보기
반응형
글이 도움이 되셨다면 공감과 광고 클릭 한번 부탁드려요! :)
감사합니다 ✨