shripalsoni04 / nativescript-webview-interface

Plugin for bi-directional communication between webView and android/ios
MIT License
89 stars 35 forks source link

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

Open jhfoo opened 6 years ago

jhfoo commented 6 years ago

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?

xeroxstar commented 6 years ago

I have the same problem, is there a solution?

shauntif commented 6 years ago

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

g-erson commented 6 years ago

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.

miguelperez commented 6 years ago

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

uzarsalan commented 5 years ago

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

Hi! Is there any solution for nativescript-vue?