Skip to content

Commit 31d3f4b

Browse files
authored
Update circular-dependency.md
Applied review
1 parent 537121f commit 31d3f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/fundamentals/circular-dependency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ While circular dependencies should be avoided where possible, you can't always d
66

77
We also describe resolving circular dependencies between modules.
88

9-
> warning **Warning** A circular dependency might also be caused when using "barrel files"/index.ts files to group imports. Barrel files should be omitted when it comes to modules/providers. For more details please also see [this github issue](https://github.com/nestjs/nest/issues/1181#issuecomment-430197191).
9+
> warning **Warning** A circular dependency might also be caused when using "barrel files"/index.ts files to group imports. Barrel files should be omitted when it comes to modules/providers. So barrel files should not be used when importing files within the same directory as the barrel file, i.e. `cats/cats.controller` should not import `cats` to import the `cats/cats.service` file. For more details please also see [this github issue](https://github.com/nestjs/nest/issues/1181#issuecomment-430197191).
1010
1111
#### Forward reference
1212

0 commit comments

Comments
 (0)