Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 60d4bae

Browse files
committed
Note the current bug in the CLI about template parsing
1 parent 06a44a5 commit 60d4bae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tutorial/chapter-1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Errors happen, and when they do it’s important to know how to handle them. Let
227227
Find the line of code that declares an `<ActionBar>` (line 2 of your `app/main-page.xml` file). Remove that line’s final `>` character so that the line looks like this.
228228

229229
``` XML
230-
<ActionBar title="My Apple" class="action-bar"
230+
<ActionBar title="My Apple" class="action-bar"></ActionBar
231231
```
232232

233233
This is invalid markup, and as you might expect NativeScript is unable to render your user interface. What NativeScript does do, however, is log any relevant errors and stack traces to your console. If you return to your terminal and scroll up just a bit you’ll see following error logged that indicates exactly where the problem is.

tutorial/ng-chapter-1.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Errors happen, and when they do it’s important to know how to handle them. Let
260260
Find the line of code that declares an `<ActionBar>` (line 6 of your `app/app.component.ts` file). Remove that line’s final `>` character so that the line looks like this.
261261

262262
``` XML
263-
<ActionBar title="My Apple" class="action-bar"
263+
<ActionBar title="My Apple" class="action-bar"></ActionBar
264264
```
265265

266266
This is invalid markup, and as you might expect NativeScript is unable to render your user interface. What NativeScript does do, however, is log any relevant errors and stack traces to your console. If you return to your terminal and scroll up just a bit you’ll see following error logged that indicates exactly where the problem is.
@@ -273,6 +273,8 @@ JS ERROR Error: Template parse errors:
273273
"): AppComponent@2:4
274274
```
275275

276+
> **WARNING**: There is a bug in the NativeScript CLI that currently prevents you from seeing template parsing errors on Android. Follow [this issue on GitHub](https://github.com/NativeScript/nativescript-cli/issues/2603) for updates.
277+
276278
Let’s fix the error now by adding the `>` back to line 6 in your `app.component.ts` file.
277279

278280
``` XML

0 commit comments

Comments
 (0)