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

Dialog only shows white background #34

Closed
erikjalevik opened this issue Jan 21, 2019 · 8 comments
Closed

Dialog only shows white background #34

erikjalevik opened this issue Jan 21, 2019 · 8 comments

Comments

@erikjalevik
Copy link

I just tried this lib out on OSX, following the instructions in the readme exactly, and the dialog appears but it's just a titlebar with a completely white pane underneath. Tried both from renderer and main process.

Any idea what I'm doing wrong?

@p-sam
Copy link
Owner

p-sam commented Jan 21, 2019

I'm not sure, I just tried latest 1.3.0 on OSX 10.14.3 with node v11.7.0 without issue, try to spawn the devtools of the created browserWindow to diagnose what's going on

@erikjalevik
Copy link
Author

Sorry, I will just close this as I made a home-rolled HTML prompt in the meantime. Probably some weird issue on my end. :)

@garviand
Copy link

Having this issue as well

@beautyfree
Copy link

Same

@cawa-93
Copy link

cawa-93 commented Dec 14, 2019

Same. I have error in dialog window

Not allowed to load local resource: file:///Users/Alex/Develop/play-shiki-app/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/page/prompt.html#1576308387511-0.7777359584319303

@rob10e
Copy link

rob10e commented Jan 18, 2020

I had the same problem. I solved mine by using
window.require('electron-prompt') instead of
require('electron-prompt')

@camhart
Copy link

camhart commented Mar 31, 2020

I'm facing this as well on Mac OS Catalina. Completely white. I'm trying to use it from the main thread (not a renderer thread).

@trandaison
Copy link

I'm using this this on main thread to performance a login before creating a browser window. But everything is empty

app.on('ready', async () => {
  const password = await prompt({
    title: 'Login',
    label: 'Password',
    value: '',
    inputAttrs: {
      type: 'password'
    },
    type: 'input',
  });
});

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

No branches or pull requests

8 participants