Open medbz opened 4 years ago
I have a workaround for this until a fix is added to the package. You can edit the module.d.ts file yourself in node_modules/angular-2-local-storage/local-storage.module.d.ts
static forRoot(userConfig?: ILocalStorageServiceConfig): ModuleWithProviders<LocalStorageModule>;
You simply just need to provide the module as the generic type parameter (line 5 for me).
I have a workaround for this until a fix is added to the package. You can edit the module.d.ts file yourself in node_modules/angular-2-local-storage/local-storage.module.d.ts
static forRoot(userConfig?: ILocalStorageServiceConfig): ModuleWithProviders<LocalStorageModule>;
You simply just need to provide the module as the generic type parameter (line 5 for me).
I too did the same but it doesn't work while deploying on an instance.
Hello , we are currently facing this problem when trying to ng build --prod , any solution for this?
ERROR in 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;
Any luck on finding the solution for this issue?
Hello , we are currently facing this problem when trying to ng build --prod , any solution for this?