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