angular2-indexeddb icon indicating copy to clipboard operation
angular2-indexeddb copied to clipboard

can't resolve all parameters for angularindexeddb

Open giamkk opened this issue 7 years ago • 2 comments

my 'ng build --prod' keep fail. 'ng build --prod' error message: ERROR in : Can't resolve all parameters for AngularIndexedDB in C:/.../node_modules/angular2-indexeddb/angular2-indexeddb.ts: (?, ?).

same as my 'ng serve' error message: Error: Can't resolve all parameters for AngularIndexedDB: (?, ?).

my 'ng serve' can run if i try to add back '@Injectable()' command. what should i do to solved this 'ng build --prod' problem?

giamkk avatar Apr 22 '18 14:04 giamkk

i have the same issue after upgrading from angular 2 to 5

ERROR in : Can't resolve all parameters for AngularIndexedDB in G:/desarrollo/indexdb/node_modules/angular2-indexeddb/angular2-indexeddb.ts: (?, ?).

where indexeddb is a new proyect generated with ng new indexeddb and app.modules.ts has been modified as you can see

import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core';

import {AngularIndexedDB} from 'angular2-indexeddb'; import { AppComponent } from './app.component';

@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule ], providers: [AngularIndexedDB], bootstrap: [AppComponent] }) export class AppModule { }

additional info:

Angular CLI: 1.7.4 Node: 8.11.1 OS: win32 x64 Angular: 5.2.10 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router

@angular/cli: 1.7.4 @angular-devkit/build-optimizer: 0.3.2 @angular-devkit/core: 0.3.2 @angular-devkit/schematics: 0.3.2 @ngtools/json-schema: 1.2.0 @ngtools/webpack: 1.10.2 @schematics/angular: 0.3.2 @schematics/package-update: 0.3.2 typescript: 2.5.3 webpack: 3.11.0

arrayman avatar May 14 '18 15:05 arrayman

i manage to solve by following this link https://stackoverflow.com/questions/48748066/angular-5-cant-resolve-all-parameters-for-service

arrayman avatar May 15 '18 10:05 arrayman