I know this question already asked here, but I am unable to resolve my error.
I just started ionic project and using this link to use auth using angular.
Everything working file but when I used
@Injectable({
providedIn: 'root'
})
I am getting error
Typescript Error
Expected 0 arguments, but got 1.
I follow every step mentioned in above link like:
1: npm install npm@latest -g
2: npm install -g @angular/cli, npm install @angular/cli
3: ng update @angular/cli
but when I use 4th step ng update @angular/core
I am getting this Package "@ionic-native/splash-screen" has an incompatible peer dependency to "rxjs" (requires "^5.5.11", would install "6.4.0").
when i run ng update rxjs
i am getting this Package "@angular/http" has an incompatible peer dependency to "rxjs" (requires "^5.5.0", would install "6.4.0").
and when I update http
using ng update @angular/http
, i am again getting this Package "@ionic-native/core" has an incompatible peer dependency to "rxjs" (requires "^5.5.11", would install "6.4.0").
So I am unable to upgrade @angular/core
.
PS: I am totally new to ionic / angular, and I dont know whether I have issue in core version
or anything else.
Note: I tried ng update
, ng update --all
, also tried to clean uninstall and re-install but nothing worked so far.
Versions:
Ionic Framework: 3.9.3
Ionic App Scripts: 3.2.3
Angular Core: ^5.2.11
Angular Compiler CLI: 5.2.11
Node: 10.15.3
OS Platform: Windows 7
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/73.0.3683.86 Safari/537.36
Angular CLI: 7.3.8
Node: 10.15.3
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, core, forms, http
... platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.13.8
@angular-devkit/build-optimizer 0.0.35
@angular-devkit/core 7.3.8
@angular-devkit/schematics 7.3.8
@angular/cli 7.3.8
@angular/compiler-cli 7.2.12
@schematics/angular 7.3.8
@schematics/update 0.13.8
rxjs 5.5.11
typescript 2.6.2
webpack 3.12.0