dscheerens / ngx-webstorage-service

Module for Angular that provides service wrappers for the Web Storage API
MIT License
65 stars 11 forks source link

ng serve cannot find StorageService #11

Closed qortex closed 5 years ago

qortex commented 5 years ago

Just upgraded to Angular 8.0.2, and now I get that when using ng serve:

ERROR in ./src/app/services/articule-storage.service.ts 84:12-26
"export 'StorageService' was not found in 'ngx-webstorage-service'
ERROR in ./src/app/services/articule-storage.service.ts 85:12-26
"export 'StorageService' was not found in 'ngx-webstorage-service'

I'm using a code similar to the one in the doc, and it worked fine until now. Also, ng build works fine.

Any idea what could be going on?

qortex commented 5 years ago

Ok, so I have the issue when using package @angular-devkit/build-angular@0.800.4, but using @angular-devkit/build-angular@0.800.3 works fine for ng serve.

How to know if there's a bug to report in build-angular, or if it can be solved on the service side?

Maybe linked to the fact the exported class is a generic type?

qortex commented 5 years ago

Ok oups, actually already reported, problem seems to be on @angular/build side. https://github.com/angular/angular-cli/issues/14876

Closing the issue here, sorry for the noise.

dscheerens commented 5 years ago

No problem. Glad to hear you found the problem :)