PillowPillow / ng2-webstorage

Localstorage and sessionstorage manager - Angular service
MIT License
428 stars 92 forks source link

Error building ngx-webstorage after upgrade to Angular 9.1 #128

Open dorje42 opened 4 years ago

dorje42 commented 4 years ago

Versions (please complete the following information):

Describe the bug I updatet my project to Angular 9.1. When I build my project, I get the following errors:

` node_modules/ngx-webstorage/lib/core/strategyCache.d.ts:14:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).

14 static ɵfac: ɵngcc0.ɵɵFactoryDef;

node_modules/ngx-webstorage/lib/strategies/localStorage.d.ts:15:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).

15     static ɵfac: ɵngcc0.ɵɵFactoryDef<LocalStorageStrategy>;

node_modules/ngx-webstorage/lib/strategies/sessionStorage.d.ts:15:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).

15 static ɵfac: ɵngcc0.ɵɵFactoryDef;

node_modules/ngx-webstorage/lib/strategies/inMemory.d.ts:16:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).

16     static ɵfac: ɵngcc0.ɵɵFactoryDef<InMemoryStorageStrategy>;

node_modules/ngx-webstorage/lib/services/strategyIndex.d.ts:21:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).

21 static ɵfac: ɵngcc0.ɵɵFactoryDef;

`

dorje42 commented 4 years ago

After removing all node_modules and install it clean again it works.

tsanko commented 4 years ago

NgxWebstorage: 6.0.0 Angular: 9.1.12

Compiling ngx-webstorage : module as esm5 Error: Error on worker #3: Error: getInternalNameOfClass() called on a non-ES5 class: expected StrategyCacheService to have an inner class declaration

shruti-ahuja commented 3 years ago

NgxWebstorage: 6.0.0 Angular: 9.1.12

Compiling ngx-webstorage : module as esm5 Error: Error on worker #3: Error: getInternalNameOfClass() called on a non-ES5 class: expected StrategyCacheService to have an inner class declaration

Running into similar issue, any resolve?