Closed marcio199226 closed 1 year ago
https://wails.io/docs/guides/troubleshooting#build-process-stuck-on-generating-bindings
Probably a blocking operation in the code.
I will check but after wails.Run() my app does nothing:
package main
import (
"embed"
"log"
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/logger"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/options/linux"
"github.com/wailsapp/wails/v2/pkg/options/mac"
"github.com/wailsapp/wails/v2/pkg/options/windows"
)
//go:embed frontend/dist
var assets embed.FS
func main() {
// Create an instance of the app structure
app := NewApp()
// Create application with options
err := wails.Run(&options.App{
Title: "mchat-desktop",
Width: 1024,
Height: 768,
MinWidth: 1024,
MinHeight: 768,
DisableResize: false,
Fullscreen: false,
Frameless: true,
StartHidden: false,
HideWindowOnClose: false,
Assets: assets,
LogLevel: logger.DEBUG,
OnStartup: app.startup,
OnDomReady: app.domReady,
OnShutdown: app.shutdown,
Bind: []interface{}{
app,
},
// Windows platform specific options
Windows: &windows.Options{
WebviewIsTransparent: false,
WindowIsTranslucent: false,
DisableWindowIcon: false,
},
Linux: &linux.Options{
WebviewTlsErrorsPolicyIgnore: true,
},
Mac: &mac.Options{TitleBar: mac.TitleBarHidden()},
})
if err != nil {
log.Fatal(err)
}
}
Could it be insufficient permissions or something like that? I remember I had similar error with not related thing to Wails, but when I was trying to set up some specific multipass from canonical instance (Ubuntu), I had similar error when running some commands like npm install
and it was telling me about insufficient drive storage, which was not the case at all.
I don't remember the solution exactly, as it was forever ago, but maybe it will ring a bell.. ?
Ok I have resolved the issue, it was related to wails-angular-template issue 5 & wails-angular-template issue 4 The solution is provided in this pr
@leaanthony thanks !
Description
There are 2 issues when building in dev mode
To Reproduce
Install wails and run wails dev
Expected behaviour
Should be able to run wails dev for development purposes
Screenshots
No response
Attempted Fixes
No response
System Details