angular-2-local-storage icon indicating copy to clipboard operation
angular-2-local-storage copied to clipboard

Angular 10 deprecated the use of ModuleWithProviders type without a generic.

Open surajpravindeshmukh opened this issue 4 years ago • 1 comments

image

Facing the following error while deploying as Angular 10 has deprecated the use of ModuleWithProviders type without a generic and the code in dist folder remains unchanged in the deployment causing the build to fail.

2021-01-18T14:33:33.8414506Z ERROR in node_modules/angular-2-local-storage/dist/local-storage.module.d.ts:4:65 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s). 2021-01-18T14:33:33.8414883Z 2021-01-18T14:33:33.8415138Z 4 static withConfig(userConfig?: ILocalStorageServiceConfig): ModuleWithProviders;

surajpravindeshmukh avatar Jan 19 '21 11:01 surajpravindeshmukh

@phenomnomnominal any solution for this issue ? Error: node_modules/angular-2-local-storage/local-storage.module.d.ts:4:62 - error TS2314: Generic type 'ModuleWithProviders <T>' requires 1 type argument(s).

4 static forRoot(userConfig?: ILocalStorageServiceConfig): ModuleWithProviders; ~~~~~~~~~~~~~~~~~~~

gomathisolai16 avatar Jul 24 '23 09:07 gomathisolai16