I recently upgraded my ionic project to 2.0.0-rc.6 and it requires [email protected]. Running npm install throws this error UNMET PEER DEPENDENCY [email protected]. The app throws Runtime Error without any specific reasons. If I remove httpAuth, it works fine. It's also working fine with Ionic 2.0.0-rc.3
argh. Ionic has a hard dep on angular 2.2.1. I knew I should have kept that beta version dep.
@escardin Did you get the same issue? If yes, how did you solve it?
Same here with the latest ionic release (v2.0.0 stable).
I will use the previous release until this is fixed:
npm install --save [email protected]
@anphu7492 No. I don't use Ionic. I don't know WTF they're thinking releasing depending on old versions of rxjs and angular. Next release I will re-add the rxjs beta dependency. In the meantime you can use 0.1.27 or earlier. I'm fairly certain the only changes are to dependencies.
@bgondy @escardin downgrading to 0.1.27 or 0.1.25 gets rid of PEER DEPENDENCY error message but still doesn't solve my Runtime Error problem. And with 0.1.27, I get this Error: No JWT present or has expired. Have no idea why
Have you got a token saved?
@escardin I managed to fix it. Thanks to this error Error: No JWT present or has expired I found out the bug in my code. There problem was that AuthHttp got called when there was no token.
Anyway, I installed 0.1.28 again and now it works fine. But still, the error message should be clearer like in version 0.1.27 :D Thank you, guys
Most likely you had a different problem at the time. The error message is there and hasn't changed.
Hmm, the only change I made was to fix that AuthHttp call. I'm not 100% sure but still believe it was the main reason. Anyway, I will close this :)
Most helpful comment
Same here with the latest ionic release (v2.0.0 stable).
I will use the previous release until this is fixed: