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

Unable to load the application interface #70

Open
koenhendriks opened this issue Jan 11, 2019 · 5 comments
Open

Unable to load the application interface #70

koenhendriks opened this issue Jan 11, 2019 · 5 comments

Comments

@koenhendriks
Copy link

I'm just trying out this package, it looks promising but i can't even get a simple window to work.

Using basic code:

const {app, BrowserWindow} = require('electron');
const windowManager = require('electron-window-manager');

app.on('window-all-closed', function() {
    if (process.platform != 'darwin')
        app.quit();
});

app.on('ready', function() {
    windowManager.init();
    windowManager.setDefaultSetup({'width': 600, 'height': 450, 'position': 'right'});
    windowManager.open('main', 'main test', './index.html');
});

I get the following error:
screenshot 2019-01-11 at 16 00 12

@nikoc2016
Copy link

remove . from html directory will solve your problem

@nikoc2016
Copy link

windowManager.open('main', 'main test', '/index.html');

@benhk2005
Copy link

Same issue here, even i use
windowManager.open('main', 'main test', '/index.html');

its the same

@anderzilla
Copy link

Hi Guys,

This problem make me lose my head kkk.
I fix it but...
This message is because the source or url is not finded.
In my code it's set in:
process.env.NODE_ENV === "development" ? envDEV + /trChamada" : 'file://${__dirname}/index.html#trChamada;'

trChamada is the igual to my route to fix it:
{ path: "/trChamada", name: "tr-chamada", component: require("@/components/Paginas/TrChamada").default },

I lose half day work to find this and solve it.
Take care by names and routes to prevent this.

@IntellyCode
Copy link

I am sry, but where did you change this code. In main.js, or index.html there is nothing. Did you change something in package.json? I searched all the main code files and i didn't find a single line of code even similar to this.

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

5 participants