- 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
- 자바스크립트
- pl/sql
- 엘리멘터
- function
- 워드프레스
- 함수
- Hostinger
- javascript
- 배열
- JSP
- 오류해결
- 트러블슈팅
- PLSQL
- dbeaver
- sql
- 이클립스
- 클론코딩
- PROCEDURE
- 문제해결
- iframe
- wordpress
- 프로시저
- spring boot
- 워스프레스
- 오라클
- Oracle
- 티스토리챌린지
- 오블완
- 환경세팅
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