LoginSignup
4
4

More than 5 years have passed since last update.

Electron1.xにしたらremoteやmenuが見つからない!

Last updated at Posted at 2016-06-15

Electron 1.1.2にアップデート($ npm update)したら動かなかったのでGoogle大先生に助けを求めたら、このページを見つけたのでメモ

remote

var remote = require('remote')

から、

var remote = require('electron').remote

にするのと、remote 下のモジュール(Menu,dialogなど)をremote.require("module-name")からremote.moduleNameにする

※ モジュール名はlowerCamelCaseにする
(ただし、MenuMenuItem,BrowserWindowなどのnewできるコンストラクタはUpperCamelCaseにすること。)

4
4
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4