codestates / codestates/memory.json
[Error] 라우터 분기후 실행시 에러발생
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### **어떤 에러인가요?**
- 라우터분기가 잘되었는지 확인 하기 위해, `npm run start`를 했지만 아래와 같은 에러가 났다.
### **에러 메시지**
`1. React.jsx: type is invalid -- expected a string (for built-in components) or a class/function`
### **에러 핸들링 방법**
- 위 에러가 뜬다면
- **1. 인자 타입을 잘못 받고 있는지 확인**
- **2. 컴포넌트명에 오타 또는 소문자/대문자가 정확한지**
- **3. export import 쌍을 이루고 있는지 확인**
- 저와 같은 경우는 프로젝트 초기여서 , Nav와 Footer에 파일 내용은 안적은채 import를 하고 있어서 문제가 일어났다. Main , Board , LandingPage는 작성해놔서 문제가 없었지만 저 두개를 간과하고 있엇네.... 신나는 시간낭비... 쉣. ..ㅠㅠㅠ 감사합니다 팀장님
`// 코드가 들어가도 좋아요!`
### **에러 핸들링을 위해 참고한 레퍼런스 링크**
[[링크](https://github.com/codestates/Memory.log-Client/issues/19)](https://github.com/codestates/Memory.log-Client/issues/19)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running `npm run start`, then inspect the router's `Nav` and `Footer` imports and exports; the issue does not name source files. Confirm that those components contain valid implementations and that the application starts without the reported React type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100