-
[ERROR] ReferenceError: exports is not defined in ES module scopeTIL 2024. 5. 28. 12:26
nest project를 실행할때 에러가 발생했다.
ReferenceError: exports is not defined in ES module scope This file is being treated as an ES module because it has a '.js' file extension and '/Users/kiju/dev/study/crime-city/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
package.json에 "type" : "module" 을 지웠더니 해결되었다
참고)
'TIL' 카테고리의 다른 글
의존성 주입(Dependency Injection) (0) 2024.06.10 [nest.js] swagger 적용하기 (0) 2024.05.29 Express static (0) 2024.05.25 [DB] 트랜잭션 동시에 실행해서 성능올리기 ( confilct serializable한 nonserial schedule을 허용하기 ) (0) 2024.04.08 [DB] soft delete 논리삭제 (0) 2024.04.05