본문 바로가기
블록체인/WEB3 개발

Try building your app with 'next build' before starting the production server. Next.js error

by 제이제이_은재 2022. 9. 12.
반응형

💡 이슈 해결하기

 

더보기

Try building your app with 'next build' before starting the production server.

 

NextJS 파일을 실행하려고 하니 위와 같은 에러가 계속 발생했다.

 

내가 해결한 방법은 아래와 같다.

 

npm run build
npm start or npm run dev

 

npm run build 후 npm start

 

혹은

 

npm run build 후 npm run dev

 

명령어를 실행하면 정상적으로 작동되는 것을 확인할 수 있다.

 

 

반응형

댓글