debugging fails with error

Thread is closed for posting
7 posts, 0 answers
  1. Benny
    Benny avatar
    15 posts
    Member since:
    Apr 2015

    Posted 29 Apr 2015 Link to this post

    As mentioned here: https://github.com/NativeScript/nativescript-cli/issues/435

     I get exactly the same error:

    When I try to debug app on a connected Android device using CLI: tns debug android --debug-brk
    I keep getting "Internal error: TypeError: Cannot convert a Symbol value to a string" when trying to navigate to a page for instance. If I use tns run android the app is running just fine. I can't figure out what's the problem but it's impossible to debug.

     Any ideas what might be the cause?

     

  2. Benny
    Benny avatar
    15 posts
    Member since:
    Apr 2015

    Posted 30 Apr 2015 in reply to Benny Link to this post

    Here's a screenshot of the error
  3. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 01 May 2015 Link to this post

    Hi Benny,

    Can you confirm your project is based on NativeScript 1.0? This glitch got corrected when building 1.0...

    Kind regards,
    Erjan Gavalji
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  4. Benny
    Benny avatar
    15 posts
    Member since:
    Apr 2015

    Posted 01 May 2015 in reply to Erjan Gavalji Link to this post

    Erjan I have version 0.10.0
  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 01 May 2015 Link to this post

    Hi Benny,

    Would you please, upgrade your project to 1.0 then?

    To my regret there is no proper way to upgrade to 1.0 other than moving your application files (excluding the tns_modules folder) to a newly created project.

    Here is a one-liner to have this update though. To run it, navigate to the parent folder of your application and change MyApp to the name of your NativeScript@0.10.0 application:

    appName=MyApp && mv $appName $appName\_OLD && tns create $appName && rm -rf $appName/app && cp -r $appName\_OLD/app $appName && (cd MyApp && tns platform add ios)

    Note: A folder, named [YourAppName]_OLD will appear. I left it for backup purposes. You can safely delete it once you confirm the upgrade.

    Kind regards,
    Erjan Gavalji
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  6. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 01 May 2015 Link to this post

    Hi Benny,

    Edit, the command I sent contains a reference to a locally-installed nativescript command-line interface I used for the demo purposes. The correct command would be:

    appName=MyApp && mv $appName $appName\_OLD && tns create $appName && rm -rf $appName/app && cp -r $appName\_OLD/app $appName && (cd MyApp && tns platform add ios)

    Kind regards,
    Erjan Gavalji
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  7. Benny
    Benny avatar
    15 posts
    Member since:
    Apr 2015

    Posted 03 May 2015 in reply to Erjan Gavalji Link to this post

    Thanks Erjan for your detailed help!

     Everything works now :)

Back to Top