0

I have an angular 2 project using the angular-cli. I want to get a collegue setup using the project, so I have them checking out the angular-cli project and am trying to get it working on their machine.

The app starts up using 'ng serve'. However,when trying to convert json as follows:

let a = <any>JSON.parse(b);

It gives this error:

Unhandled Promise rejection: Error in ./AppComponent class AppComponent - inline template:3:2 caused by: Unexpected token u in JSON at position 0 ; Zone: <root> ; Task: Promise.then ; Value:

The problem looks a bit similar to this one. However, the answers all refer to system.config, whereas I am using the angular-cli.

Community
  • 1
  • 1
trees_are_great
  • 3,881
  • 3
  • 31
  • 62

0 Answers0