Nativescript: I can't start the preview, I get an error and it never loads

Created on 15 Aug 2020  路  3Comments  路  Source: NativeScript/NativeScript

Environment

  • CLI: 4.27.1
  • Cross-platform modules: any
  • Android Runtime: any
  • iOS Runtime: any
  • Plugin(s): any

Describe the bug
I just created a project and when I use the command "tns preview" I get this error and it won't let me have a preview of the application.

To Reproduce
Use the command "tns preview" to show the preview of the application.

Expected behavior
Have a preview in the NativeScript Preview application.

Sample project
In all empty templates or projects

Additional context
Please fix it, I can't use NativeScript as I can't see the application preview.

Image
1

Error

SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at PreviewSdkService.<anonymous> (C:\Users\Sawako\AppData\Local\Yarn\Data\global\node_modules\nativescript\lib\services\livesync\playground\preview-sdk-service.js:100:43)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\Sawako\AppData\Local\Yarn\Data\global\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

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

Now it works perfect, thanks for repairing it. Time to use NativeScript like never before!

All 3 comments

A migration is in progress - we expect everything to be back in working order by Monday

https://github.com/NativeScript/NativeScript/issues/8765

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

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

Now it works perfect, thanks for repairing it. Time to use NativeScript like never before!

Was this page helpful?
0 / 5 - 0 ratings