We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be5c1f commit 1cc8142Copy full SHA for 1cc8142
platform/nativescript/compiler/modules/router.js
@@ -3,7 +3,11 @@ import { addAttr } from 'compiler/helpers'
3
4
function preTransformNode(el) {
5
if (el.tag !== 'router-view') return
6
- if (normalizeElementName(el.parent.tag) === 'nativeframe') {
+ if (
7
+ el.parent &&
8
+ el.parent.tag &&
9
+ normalizeElementName(el.parent.tag) === 'nativeframe'
10
+ ) {
11
addAttr(el.parent, 'hasRouterView', 'true')
12
}
13
0 commit comments