1

I've an Ionic application. I now want to use Akita as state management in my project. By default, Akita tries to replaces

  "cli": {
    "defaultCollection": "@ionic/angular-toolkit"
  },

by

  "cli": {
    "defaultCollection": "@datorama/akita"
  },

and it extends the angular actions. My issue is that it won't extends the default Ionic schematics.

So I did preferred to keep the @ionic/angular-toolkit and have to specify the akita schematics when I want to use them.

But now if I try something like:

ng g akita-schematics:as auth/auth

I get an error:

An unhandled exception occurred: Collection "akita-schematics" cannot be resolved.

So my question is, how can I add an angular schematics(for akita, but I guess it's the same for other libraries), without setting it as default?

J4N
  • 19,480
  • 39
  • 187
  • 340

0 Answers0