> For the complete documentation index, see [llms.txt](https://toothlessdev.gitbook.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://toothlessdev.gitbook.io/main/web-develop/redux-js/debug-cannot-access-slice-before-initialization.md).

# \[DEBUG] Cannot access '\~Slice' before initialization

## ❎ 에러

## ❎ 디버깅

## ✳️ 원인

## **✅ 해결**

{% embed url="<https://randycoulman.com/blog/2018/06/12/solving-circular-dependencies-in-modular-redux/>" %}

{% embed url="<https://stackoverflow.com/questions/63923025/how-to-fix-circular-dependencies-of-slices-with-the-rootstate>" %}

{% embed url="<https://redux-toolkit.js.org/usage/usage-guide#exporting-and-using-slices>" %}

{% embed url="<https://medium.com/visual-development/how-to-fix-nasty-circular-dependency-issues-once-and-for-all-in-javascript-typescript-a04c987cf0de>" %}
