Wails: Develop head - bare app shows blank screen

Created on 26 Aug 2019  路  15Comments  路  Source: wailsapp/wails

Description
With a react app, wails build produces a native binary that fails to show anything but the correct background color in a square.

Expected behaviour
I expected to see the default page, the same I see with wails serve

Screenshots
https://files.catbox.moe/i9nxzx.png

System Details
Void Linux on the latest develop.

bug

Most helpful comment

Now I begin massaging my clojurescript project into a wails container!

All 15 comments

What template was this?

Please file bugs using wails issue. Thanks.

wails issue seems to try using links, instead of just giving me a link I can use in my browser.

React.

As for which template, I've duplicated it with all 4 templates, though template 1 (angular) shows a lighter background than the other 3.

I think part of it is in the rendering, but it's hard to get wails build to emit lots of logs. Any suggestions would be cool.

Stupid question, does it work for you two?
I'm going to try and duplicate on more machines.

yeap, I wanted to comment this, it works as expected here :/

have you tried building in debug mode and run via terminal? wails build -d && ./app-name

Excellent, will try -d

data:text/html,%3C%21DOCTYPE%20html%3E%0A%3Chtml%20lang=%22en%22%3E%0A%3Chead%3E%3Cmeta%20charset=%22utf-8%22%3E%3Cmeta%20http-equiv=%22IE=edge%22%20content=%22IE=edge%22%3E%3C%2Fhead%3E%0A%3Cbody%3E%3Cdiv%20id=%22app%22%3E%3C%2Fdiv%3E%3Cscript%20type=%22text%2Fjavascript%22%3E%3C%2Fscript%3E%3C%2Fbody%3E%0A%3C%2Fhtml%3E:1:44835: CONSOLE ERROR TypeError: window.wails._.Init is not a function. (In 'window.wails._.Init(e)', 'window.wails._.Init' is undefined)

Same error on all 4 templates, with zero modifications made after running wails init

can u please share the code of index.js of the react project?

import React from 'react';
import ReactDOM from 'react-dom';
import 'core-js/stable';
import './index.css';
import App from './App';

import Wails from '@wailsapp/runtime';

Wails.Init(() => {
  ReactDOM.render(<App />, document.getElementById('app'));
});

Worked on the subsequent system I installed it on.

ECAN'TREPRODUCE.

Now I begin massaging my clojurescript project into a wails container!

Was this page helpful?
0 / 5 - 0 ratings