@Injectable()
decorator (previously, injected tokens without @Injectable()
were allowed if another decorator was used, e.g. pipes). In our case the @State()
decorator was used.CountriesState
is a provider and Ivy requires to decorate all providers with the @Injectable()
decorator, then the Ivy compatible code should look like this:providedIn
to root
on the @Injectable()
decorator.