티스토리 뷰
반응형
Angular를 사용하다가 갑자기 다음과 같은 Circular dependency detected 경고문이 나왔다.
Dependency import와 export를 잘못 사용해서 나오는 경고문이다.
제일 좋은 방법은 필요없는 import 및 export를 지우는 것인데
너무 많아서 해결하기 힘들면 다음과 같이 사용해도 된다.
WARNING in Circular dependency detected:
src/app/_core/index.ts -> src/app/_shared/shared.module.ts -> src/app/_shared/component/goodssearch/goodssearch.component.ts -> src/app/_core/index.ts
WARNING in Circular dependency detected:
src/app/_shared/component/goodssearch/goodssearch.component.ts -> src/app/_core/index.ts -> src/app/_shared/shared.module.ts -> src/app/_shared/component/goodssearch/goodssearch.component.ts
WARNING in Circular dependency detected:
src/app/_shared/shared.module.ts -> src/app/_shared/component/goodssearch/goodssearch.component.ts -> src/app/_core/index.ts -> src/app/_shared/shared.module.ts
이럴 때 는 angular-cli.json 파일에서 다음과 같이 설정을 해주면 된다.
"defaults": {
....
"build": {
"showCircularDependencies": false
}
}
반응형
'FrontEnd > Angular' 카테고리의 다른 글
angular 파일업로드 (0) | 2018.08.08 |
---|---|
angular router popup (0) | 2018.08.07 |
Textarea String으로 저장 (0) | 2018.08.02 |
RxJS (0) | 2018.07.31 |
localStroage에 json데이터 담기 (0) | 2018.07.23 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Spring
- MySQL
- 파이썬
- JPA
- CSS
- 페이스북 로그인
- angular router
- https://www.tistory.com/auth/logout/
- React-router
- Python
- Java
- Angular
- react
- mobx
- data component
- python3
- Spring Boot
- data component module
- JSON
- JavaScript
- jQuery
- localStorage
- data grid component
- data gird component
- Redux
- 파이썬3
- Router
- facebook login
- data table component
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함