Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

TypeError: Could not load view for: nativewebviewext #96

Closed keithoys closed 3 years ago

keithoys commented 3 years ago

Error I am Facing:

TypeError: Could not load view for: nativewebviewext. TypeError: undefined is not a constructor (evaluating 'new i.Property({name:"autoInjectJSBridge",defaultValue:!0,valueConverter:i.booleanConverter})') file: app/webview-ext-common.ts:20:80

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

In main.ts, I have: Vue.registerElement("WebViewExt", () => require("@nota/nativescript-webview-ext").WebViewExt);

In the vue-component, I have: <WebViewExt :src="docUrl" />

It just can't display the WebView.

doublechecker commented 3 years ago

Same here with angular

m-abs commented 3 years ago

It looks like you're using the NativeScript 7 version with NativeScript 6.5.8.

That might be the cause.

doublechecker commented 3 years ago

You are right. For me its solved. Thanks