window is not definedNext.js is universal, which means it executes code first server-side, then client-side. The window object is only present client
create-next-app 으로 설치가 가능하다.y 엔터npm을 사용하여 의존성들을 설치하겠다는 메시지 표시설치가 끝나면 이런 메시지가 나를 반긴다.처리가 완료되면 아래와 같이 서버가 시작되었다고 표시된다.http://localhost:3000 으로 확인 가