This question is locked. New answers and comments are not allowed.
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?
6 Answers, 1 is accepted
0
Benjamin
Top achievements
Rank 1
answered on 30 Apr 2015, 09:22 AM
Here's a screenshot of the error
0
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
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.
0
Benjamin
Top achievements
Rank 1
answered on 01 May 2015, 12:49 PM
Erjan I have version 0.10.0
0
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
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.
0
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
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.
0
Benjamin
Top achievements
Rank 1
answered on 03 May 2015, 06:14 AM
Thanks Erjan for your detailed help!
Everything works now :)