Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jhfoo opened this issue Apr 22, 2018 · 5 comments

Comments

@jhfoo
Copy link

jhfoo commented Apr 22, 2018

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
Copy link

I have the same problem, is there a solution?

@shauntif
Copy link

shauntif commented Jul 18, 2018

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

@g-erson
Copy link

g-erson commented Jul 30, 2018

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
Copy link

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

@uzarsalan
Copy link

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

Hi! Is there any solution for nativescript-vue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants