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

not work with electron-build #1612

Open
davisbra opened this issue Aug 22, 2020 · 2 comments
Open

not work with electron-build #1612

davisbra opened this issue Aug 22, 2020 · 2 comments

Comments

@davisbra
Copy link

I use nightmare on electron.
it works fine in debugging mode.
but when I build electron app with electron-builder, it not work and it open multiple window of electron main app.
how can I fix this issue?
its my code:

mainWindow.loadURL('https://google.com')
const Nightmare = require('nightmare')
const nightmare = Nightmare({autoHideMenuBar:true,menuBarVisible:false, electronPath: require('electron').app.getPath('exe');, show: true, });
nightmare.goto("https://github.com")
.catch(error => {
console.error('Search failed:', error)
})

@nemeshine
Copy link

is that result in electron just white screen???

@nibirgama
Copy link

@davisbra have able to solve the issue ?
i am also facing the same problem

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

No branches or pull requests

3 participants