반응형
에러 메세지
export 'filename' was not found in './xx'
브라우저 에러
Uncaught 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 { TestComponent } from './test/TestComponent'
수정 : import TestComponent from './test/TestComponent'
반응형
'개발 환경 및 오류' 카테고리의 다른 글
Some resources were not reverted. svn: E155038: Cant revert '{0}' without reverting parent (0) | 2020.10.07 |
---|---|
MS SQL 2014 ] 외부에서 접속 하도록 인증 ID만들기 (0) | 2019.02.12 |
IE에서 iframe pdf z-index 적용 안되는 이슈 (0) | 2018.12.07 |
angularJs - 함수 사용 시 [$parse:sysntax] (0) | 2018.08.06 |
JsRender #index 작동 안함. (0) | 2018.05.09 |