diff --git a/packages/runtime/src/patchProp.ts b/packages/runtime/src/patchProp.ts index 81cc7100..908e1f71 100644 --- a/packages/runtime/src/patchProp.ts +++ b/packages/runtime/src/patchProp.ts @@ -1,12 +1,10 @@ import { isAndroid, isIOS } from '@nativescript/core/platform' import { logNodeOp, NodeOpTypes } from './nodeOps' -// import { isOn } from '@vue/shared' import { NSVViewNode } from './nodes/NSVElement' import { isOn } from '@vue/shared' import set = Reflect.set import { patchEvent } from './modules/events' import { isAndroidKey, isIOSKey } from './runtimeHelpers' -// import set from 'set-value' // const XML_ATTRIBUTES = Object.freeze([ // 'style', diff --git a/packages/runtime/src/registry/index.ts b/packages/runtime/src/registry/index.ts index a7488288..81403c04 100644 --- a/packages/runtime/src/registry/index.ts +++ b/packages/runtime/src/registry/index.ts @@ -47,7 +47,7 @@ export function getViewClass(elementName: string): any { } try { - return entry.resolver() + return entry.resolver!() } catch (e) { throw new Error(`Could not load view for: ${elementName}. ${e}`) }