Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 게시글 이미지
- 쿼리스트링
- N+1문제
- 스테이지어스
- 레포지토리
- 3계층구조
- 포트번호
- JSON Web Token
- element.style
- 알림생성
- N+1
- JWT 쓰는이유
- unnest
- 이미지가 포함된 게시글
- 패스파라미터
- 메뉴바 한번에
- 알림생성모듈
- JWT
- .env
- getComputedStyle
- JWT 쓰는 방법
- 메뉴바
- 토큰
- route 53
- secret코드
- 환경변수
- Winston
- 네비게이션 한번에
- 게시글 이미지 업로드
- 부트캠프
Archives
- Today
- Total
기주
[ERROR] ReferenceError: exports is not defined in ES module scope 본문
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 |