Skip to content

关于Electron升级到4.0+的问题 #1

Description

@JackChius

electron 升级到相对新的4.0.3后,无法启动项目

开始遇到 app.makeSingleInstance(cb)' is deprecated ,not a function的报错,
查询是方法经过变动,替换为app.requestSingleInstanceLock()后通过,

然后依据提示将component-class/index.js下的
var index = require('indexof');换为
var index = require('component-indexof');

此时CLI显示 webpack: Compiled successfully.,但仍然没有程序窗口弹出

大佬可以帮忙看看吗

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions