inflearn logo
강의

Course

Instructor

[Renewal] Creating a NodeBird SNS with React

Apply the changed state and check with eslint

ESLint /pages/_app.js 파일의 Component 오류에 대해 궁금합니다.

567

travelc2bd3

25 asked

0

const Common = ({ Component }) 이부분에서 받아오는 Component에 'Component' is missing in props validation 이라고 에러가 나옵니다.

proptypes가 잘못된건지 어디가 문제인지 찾지를 못하겠습니다ㅠ

import React from 'react';
import PropTypes from 'prop-types';
import Head from 'next/head';

import 'antd/dist/antd.css';

import wrapper from '../store/configureStore';
// 모든페이지에서 공통인 부분
const Common = ({ Component }) => (
<>
<Head>
<meta charSet="utf-8" />
<title>Nodebird</title>
</Head>
<Component />
</>
);

Common.propType = {
Component: PropTypes.elementType.isRequired,
};

export default wrapper.withRedux(Common);

redux nodejs express react Next.js

Answer 2

1

zerocho

Common.propTypes = { 입니다.

0

travelc2bd3

으 오타였군요 ㅠ 감사합니당

넥스트 버젼 질문

0

78

2

로그인시 401 Unauthorized 오류가 뜹니다

0

90

1

무한 스크롤 중 스크롤 튐 현상

0

177

1

특정 페이지 접근을 막고 싶을 때

0

103

2

createGlobalStyle의 위치와 영향범위

0

97

2

인라인 스타일 리렌더링 관련

0

92

2

vsc 에서 npm init 설치시 오류

0

148

2

nextjs 15버전 사용 가능할까요?

0

160

1

화면 새로고침 문의

0

123

1

RTK에서 draft, state 차이가 있나요?

0

154

2

Next 14 사용해도 될까요?

0

452

1

next, node 버전 / 폴더 구조 질문 드립니다.

0

349

1

url 오류 질문있습니다

0

211

1

ssh xxxxx로 우분투에 들어가려니까 port 22: Connection timed out

0

375

1

sudo certbot --nginx 에러

0

1281

2

Minified React error 콘솔에러 (hydrate)

0

470

1

카카오 공유했을 때 이전에 작성했던 글이 나오는 버그

0

247

1

프론트서버 배포 후 EADDRINUSE에러 발생

0

329

1

npm run build 에러

0

519

1

front 서버 npm run build 중에 발생한 에러들

0

383

1

서버 실행하고 브라우저로 들어갔을때 404에러

0

338

2

css 서버사이드 랜더링이 적용되지 않아서 문의 드립니다.

0

289

1

팔로워 3명씩 불러오고 데이터 합쳐주는걸로 바꾸고 서버요청을 무한으로하고있습니다.

0

240

2

해시태그 검색에서 throttle에 관해 질문있습니다.

0

202

1