Skip to content

Commit

Permalink
Note the current bug in the CLI about template parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tjvantoll committed Mar 24, 2017
1 parent 06a44a5 commit 60d4bae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tutorial/chapter-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Errors happen, and when they do it’s important to know how to handle them. Let
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.

``` XML
<ActionBar title="My Apple" class="action-bar"
<ActionBar title="My Apple" class="action-bar"></ActionBar
```

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.
Expand Down
4 changes: 3 additions & 1 deletion tutorial/ng-chapter-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Errors happen, and when they do it’s important to know how to handle them. Let
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.

``` XML
<ActionBar title="My Apple" class="action-bar"
<ActionBar title="My Apple" class="action-bar"></ActionBar
```

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.
Expand All @@ -273,6 +273,8 @@ JS ERROR Error: Template parse errors:
"): AppComponent@2:4
```

> **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.

Let’s fix the error now by adding the `>` back to line 6 in your `app.component.ts` file.

``` XML
Expand Down

0 comments on commit 60d4bae

Please sign in to comment.