nativescript-webview-interface icon indicating copy to clipboard operation
nativescript-webview-interface copied to clipboard

Error: com.tns.NativeScriptException: Failed to find module: "nativescript-webview-interface\index-common", relative to: app/tns_modules/

Open jhfoo opened this issue 6 years ago • 5 comments

Trying to incorporate this awesome module into my Vue-NativeScript test project. Installed via npm (tns doesn't seem to work somehow) npm install -D nativescript-webview-interface

This line of code threw the above exception: const WebviewModule = require('nativescript-webview-interface');

What may be missing?

jhfoo avatar Apr 22 '18 23:04 jhfoo

I have the same problem, is there a solution?

xeroxstar avatar May 03 '18 10:05 xeroxstar

The -D flag is not correct. tns instead of npm. tns plugin add nativescript-webview-interface

shauntif avatar Jul 18 '18 13:07 shauntif

tns instead of npm. tns plugin add nativescript-webview-interface

tns plugin add is not compatible with Nativescript-Vue.

I just had this issue, to get it to work, I ran

npm install nativescript-webview-interface, then npm run clean, and then it built without error.

g-erson avatar Jul 30 '18 12:07 g-erson

Hi, do you have a sample showing how to add this to a vue.js project?

miguelperez avatar Nov 13 '18 13:11 miguelperez

Hi, do you have a sample showing how to add this to a vue.js project?

Hi! Is there any solution for nativescript-vue?

uzarsalan avatar Jun 11 '19 02:06 uzarsalan