Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dorje42 opened this issue Apr 2, 2020 · 3 comments
Open

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

dorje42 opened this issue Apr 2, 2020 · 3 comments

Comments

@dorje42
Copy link

dorje42 commented Apr 2, 2020

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;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
Copy link
Author

dorje42 commented Apr 22, 2020

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

@tsanko
Copy link

tsanko commented Jul 24, 2020

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants