question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run tns preview get some error

See original GitHub issue

create an new vue project, then run tns preview, scan the qr code, get some error

image

but when i run tns run ios --bundle, the app display success.

how can i solve the question.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DimitarTachevcommented, Nov 21, 2018

Hi @yoking-shi,

Thanks for reporting this limitation. You are getting this error because currently, only our webpack plugin can compile Vue projects. For this reason, we have a pull request in the nativescript-vue plugin for validating this option and avoiding such runtime exceptions.

In other words, you should always use --bundle in your NativeScript Vue projects.

0reactions
yoking-shicommented, Nov 29, 2018

@DimitarTachev ,This command will prompt the same error, So I asked questions again, I’ll try again when I get home

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nativescript-Angular - tns preview -> SyntaxError: Unexpected ...
There's currently an issue with Nativescript playground. I analysed the endpoint, and can see that's it's not receiving the expected data, ...
Read more >
tns preview - NativeScript Docs
The Preview app comes with a predefined set of NativeScript plugins. If your app utilizes a plugin that is not present in the...
Read more >
"ORA-12154: TNS:could not resolve the connect identifier ...
ERROR : "ORA-12154: TNS:could not resolve the connect identifier specified" while running data preview on Oracle source in · May 12, 2022•Knowledge 000177839 ......
Read more >
How to Develop Particle Iot Apps Using NativeScript
The mobile preview mode ( tns preview command) does not pay well with native libraries. If you have some native platform specific libraries, ......
Read more >
TNS cannot find project : r/nativescript - Reddit
I then opened Visual Code and opened a New Terminal. ... I then ran tns preview and tns run android --bundle to get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found