Nativescript: tns preview doesn't work doe to unexpected token

Created on 14 Aug 2020  路  6Comments  路  Source: NativeScript/NativeScript

Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (ios)
Start sending initial files for device iPhone.
Successfully sent initial files for device iPhone.
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at PreviewSdkService. (/usr/local/lib/node_modules/nativescript/lib/services/livesync/playground/preview-sdk-service.js:100:43)
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/nativescript/lib/services/livesync/playground/preview-sdk-service.js:4:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

Most helpful comment

Works! Well done, thx.

@cebepok13 thanks for creating this issue - Could you give it another try?

Works! Well done, thx.

All 6 comments

I have the same issue. Seems to be related to the playground endpoint not being JSON. Web version of playground also experiencing issues.

Yep same problem here and a few people on stackoverflow say the same. same position in same js file. Hopefully they can fix the issue fast.

I got answer from the support team. The error is known and they are working on it. Should be done by monday.

Yeah i was facing the same problem. Thanks @BockHornJS for letting us know.

@cebepok13 thanks for creating this issue - Could you give it another try?

Works! Well done, thx.

@cebepok13 thanks for creating this issue - Could you give it another try?

Works! Well done, thx.

Was this page helpful?
0 / 5 - 0 ratings