Closed alihoseiny closed 3 years ago
I made a pull request for angular 11 here maybe it will help you https://github.com/fulls1z3/ngx-cache/pull/137
I didn't encounter your problem so I am not sure if it fixes it
I'm experiencing same issue. It's easy to reproduce. We have to create new application (by Angular CLI 12):
$ ng new TestApp
$ cd TestApp
$ npm install @ngx-cache/core @ngx-cache/platform-browser --save
Add to app.component.ts
file function:
@Cached('some-string')
getSomeStringValue(): string {
return 'some string value';
}
And after: ng build
I have an error:
Error: node_modules/@ngx-cache/core/cache.service.d.ts:32:22 - error TS2724: '"/Users/mczachurski/Downloads/Angular12/TestApp3/node_modules/@angular/core/core"' has no exported member named 'ɵɵInjectableDef'. Did you mean 'ɵgetInjectableDef'?
32 static ɵprov: i0.ɵɵInjectableDef<CacheService>;
Thus it seems that library cannot be used in new Angular applications at all. Do you have any plans to merge PR and create new NPM version?
I'm submitting a ... (check one with "x")
Current behavior
Getting
error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDefWithMeta'.
exception after updating to Angular 11. This plugin is no longer usable for newer versions of Angular.