5

I have

. . . 
"scripts": {
 "start": "electron main.js"
}, 
"devDependencies": {
 "electron-prebuilt": "^0.35.0"
}

in package.json of my electron app. I use Intellij Idea with installed node.js plugin.

main.js:

var BrowserWindow = require('browser-window');

Intellij Idea IDE underlines require('browser-window') and shows warning Module is not installed and doesn't provide autocompletion to BrowserWindow.

asked Nov 27, 2015 at 15:57
2
  • browser-window is not a npm module. Are you just trying to do var BrowserWindow = require('electron').BrowserWindow ? Commented May 16, 2016 at 14:22
  • @FelixYadomi maybe electron classes import convention changed but autocompletion still doesn't work. Commented Jul 8, 2016 at 15:03

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.