Skip to content

Error trying to create a new window #95

Open
@davej

Description

@davej

I get the following error:

TypeError: BrowserWindow is not a constructor

When trying to create a new empty browser window in Spectron.

this.app = new Application({
  path: electronPath,
  args: ['.'],
});
// ...
const { BrowserWindow } = app.electron.remote;
const webBrowser = new BrowserWindow({ width: 800, height: 800 });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions