-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
akita/cli barrel circular dependency #32
Comments
We consider removing the barrel file. We are going to release Angular schematics support and will not include it.
Not sure what you mean.
We'll open soon, meantime you can ask here. |
In
Alright then I start dropping the barrel files in the anticipation to the future change. Thanks! |
One line makes the code shorter. |
Agree. Then it would make sense to have it also in one line in the Query and Service templates. |
I'm submitting a...
Current behavior
Because of the barrel index files, I always get circular dependency warnings at compile time. Example:
movies/state/index.ts
importsmovies/state/movies.service.ts
actors/state/actor.model.ts
via barrelactors/state/index.ts
actors/state/index.ts
importsactors/state/actors.query.ts
movies/state/movies.query.ts
via barrelmovies/state/index.ts
Such cases are unfortunately very common and the barrel files create more unconviniences than they help. Have you encountered such cases and how do you go around with it? Do you just remove the barrel? Thanks!
PS. Are the missing line breaks around
providedIn: 'root'
in the CLI for Store intentional?PPS. Is there a slack/gitter room for asking such small questions?
The text was updated successfully, but these errors were encountered: