인프런 커뮤니티 질문&답변
공식문서
작성
·
156
0
안녕하세요.
제가 next에 typescript 적용하려고 제로초님 수업듣고 next 공식 문서를 한번 읽어보고 있었는데요.
공식 문서에는 다음과 같이 나와 있습니다.
npx create-next-app --ts
# or
yarn create next-app --typescript
npm run dev
# You'll see instructions like these:
#
# Please install typescript, @types/react, and @types/node by running:
#
# yarn add --dev typescript @types/react @types/node
#
# ...
TypeScript strict mode is turned off by default. When you feel comfortable with TypeScript, it's recommended to turn it on in your tsconfig.json.
------------
그래서 제가 그대로 따라 해봤는데 tsconfig.json 의 strict 기본 값이 true 네요.
공식문서에는 turned off 가 기본 값이라 나와있고 그러면 false 로 나와있어야하는 거 아닌가 해서요.
그리고 npm run dev 했을 때 # You'll see instructions like these: ~~
이 부분 밑에 주석으로 써져 있는 글(공식 문서에 나와있는 글) 도 안나오고 (직접 해봤을 때) 그냥 바로 되는데
공식문서도 업데이트가 느린 경우가 있나요? 조금 헷갈리네요
"strict": true,




