ng2-webstorage icon indicating copy to clipboard operation
ng2-webstorage copied to clipboard

Error building ngx-webstorage after upgrade to Angular 9.1

Open dorje42 opened this issue 4 years ago • 3 comments

Versions (please complete the following information):

  • NgxWebstorage: 5.0.0
  • Angular: 9.1.0

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<StrategyCacheService>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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<SessionStorageStrategy>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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<StrategyIndex>;

`

dorje42 avatar Apr 02 '20 07:04 dorje42

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

dorje42 avatar Apr 22 '20 08:04 dorje42

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

tsanko avatar Jul 24 '20 17:07 tsanko

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?

shruti-ahuja avatar Oct 01 '20 14:10 shruti-ahuja