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.

trouble implementing in nativescript-angular

See original GitHub issue

Seeing some errors when following the getting starting guide:

JS: ERROR Error: Uncaught (in promise): Error: Template parse errors:
JS: Only void and foreign elements can be self closed "BarcodeScanner" ("
JS:     -->
JS:     <GridLayout class="page page-content" tkMainContent>
JS:         [ERROR ->]<BarcodeScanner
JS:           class="scanner-round"
JS:           formats="QR_CODE, EAN_13"
JS: "): ng:///data/data/org.nativescript.KipoTrac/files/app/home/home.component.html@31:8

When i remove the self-closing tag i get a different error:

JS: ERROR Error: Uncaught (in promise): TypeError: viewClass is not a constructor
JS: TypeError: viewClass is not a constructor

I’m a bit lost.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
gdurandcommented, Mar 30, 2018

I’ve stumbled upon this issue too. I think you should clearly indicate that the embedded view is for iOS only. BTW the demo-ng does not work for Android, so perhaps you should adapt it to support it. This way it’ll be even more clear how to manage both platforms.

3reactions
EddyVerbruggencommented, Mar 30, 2018

@gdurand I should do this and I should do that. You should do a PR if you’re not happy with my work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · NativeScript/nativescript-angular - GitHub
Contribute to NativeScript/nativescript-angular development by creating an account ... Error when using grouping and deleting an item in an ObservableArray.
Read more >
Angular Tutorial - NativeScript Docs
This tutorial introduces you to the fundamentals of building a NativeScript app with Angular by walking you through building an example app with...
Read more >
Native script angular android app error with nativescript-webrtc
1 Answer 1 · Clone the nativescript-webrtc repository · Merge the PR with master branch in your local system (see this link to...
Read more >
NativeScript vs. React Native - LogRocket Blog
NativeScript's vision is to “Liberate your development by using platform APIs directly without leaving your [love] of JavaScript.” Think of ...
Read more >
Build A Simple Mobile App With NativeScript And Angular
I've been building NativeScript applications for a while now using vanilla JavaScript and TypeScript. Even though NativeScript has been ...
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