- Today
- Total
Notice
Recent Posts
Recent Comments
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- dbeaver
- 환경세팅
- 문제해결
- Oracle
- 오류해결
- iframe
- PROCEDURE
- JSP
- function
- 오라클
- 배열
- 티스토리챌린지
- 워드프레스
- 의존성주입
- PLSQL
- wordpress
- 트러블슈팅
- 오블완
- sql
- pl/sql
- 이클립스
- 엘리멘터
- Hostinger
- 워스프레스
- spring boot
- 프로시저
- 함수
- javascript
- 쿼리개선
- 클론코딩
Archives
개발 공부중
[Develop/React] object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. 오류해결 본문
REACT
[Develop/React] object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. 오류해결
개발자 leelee 2023. 3. 23. 14:58

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. 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가 잘못 되어있었다.
import { Button, Card, Modal } from 'react-bootstrap'
import { Form, useNavigate, useParams } from 'react-router-dom'
위 문구를 아래로 바꿔주었다.
import { Form, Button, Card, Modal } from 'react-bootstrap'
import { useNavigate, useParams } from 'react-router-dom'
'REACT' 카테고리의 다른 글
| [React] JSX 문법 정리 (0) | 2023.02.22 |
|---|
Comments