TwanoO67 / ngx-admin-lte

Admin LTE for Angular 2/4/6/8 as a NPM package
MIT License
109 stars 47 forks source link

update angular 4 to angular 5 #71

Open ghatfan99 opened 6 years ago

ghatfan99 commented 6 years ago

Hello, I am trying to update my angular project from version 4 to 5, in my project the version of ngx-admin-lte is 0.2.0 and i have this error when i try to do ng serve: ERROR in node_modules/ngx-admin-lte/src/ngx-admin-lte.module.ts(12,34): error TS2345: Argument of type 'HttpClient' is n ot assignable to parameter of type 'HttpClient'. Types have separate declarations of a private property 'handler'.

for more details I asked for help on stackoverflow: https://stackoverflow.com/questions/52648960/argument-of-type-httpclient-is-n-ot-assignable-to-parameter-of-type-httpclien

Is ther a method to update the local version of ngx-admin-lte package to tha last one in my project? Shall i uninstall the package and reinstall it ? thanks for your help

TwanoO67 commented 6 years ago

Hello,

You shoud try with the last 2.x beta for new angular versions

ghatfan99 commented 6 years ago

Hello, What is th best way to do that? the steps for doing that after I get my project from git and before npm install or after:

  1. npm uninstall ngx-admin-lte
  2. npm install ngx-admin-lte thanks
TwanoO67 commented 6 years ago

npm install ngx-admin-lte@2.0.0-beta.11 --save