반응형
No Next.js version could be detected in your project.
Could not identify Next.js version, ensure it is defined as a project dependency..
Error : No Next.js version could be detected in your project. Make sure '"next"' is installed in "dependencies" or "devDependencies"
next가 프로젝트 안에 없다고?? 왜?? package.json도 있고 다 있는데 도대체 뭐가 문제인걸까..
한참을 찾다가 밝혀낸 원인은 root directory였다.
root directory의 blog폴더에 프로젝트 파일들이 있기때문에 root directory를 ./
가 아니라 ./blog
로 설정해주어야 했다.
root directory를 바꿔주니 배포가 되었다.
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.
반응형
'개발 > Next.js' 카테고리의 다른 글
next에서 styled-component에 SSR 적용하는 방법 (0) | 2023.06.01 |
---|---|
next 13.1.2 이상에서 나타나는 에러 : Error: Cannot find module node_modules/next/dist/compiled/sass-loader/fibers.js' (0) | 2023.02.03 |
Next.js에서 공통 레이아웃 설정하기 (0) | 2023.01.13 |
getStaticPaths의 fallback (1) | 2022.09.20 |
next/image : next.js에서 제공하는 이미지 최적화 태그 (0) | 2022.09.19 |