SimonTestNet/SimonTest

Unexpected token / in JSON at position 128

Closed this issue · 8 comments

Use case:
Right click on the component and generate component test
Result:
Unexpected token / in JSON at position 128

Hello,
Please, find the attachments below.
Environment:

  • visual studio code v 1.18.0
  • Node 7.9.0
  • arch: ia32
    Thanks,

login.component.ts.zip
login.zip

I can't repro it =(

This seems related to #21 - My best guess is that it's an encoding or an invisible character. Try what I suggested there and let me know.

I think it's an issue with package.json or tslint.json (where the formatting rules are read). Can you attach both files?

jgodi commented

I am getting the same thing but on line 764. Would love to be able to use this extension! My package.json and tslint are all valid JSON.

I had this issue as well. I noticed that I had put comments in the tslint.json file. Once I removed them it worked again.

This is fixed on v0.18.1
Thanks @kpaxton