I'm despairing..
installed npm package: "angular2-jwt": "^0.1.28" on my ionic2 project. (I'm using IntelliJ)
When I run "ionic serve" I get:
Runtime Error
Error in ./MyApp class MyApp - caused by: token.split is not a function
TypeError: token.split is not a function
at JwtHelper.decodeToken (angular2-jwt.js:221)
I see in angular2-jws.js:
var parts = token.split('.');
split has multiple declarations (EcmaScript.js and EcmaScript6.js).
I also tried to change the JavaScript language version under Settings > Languages & Frameworks > JavaScript and serve again but without success.
The same code works on an Angular2 project using Visual Studio Code.
Would be super cool if somebody could give me a hint..