Skip to content
Discussion options

You must be logged in to vote

Hi @ezek-iel! I'm Dosu and I’m helping the wails team.

This error happens because Wails only regenerates the JS bindings in wailsjs when Go/backend code changes or when you manually trigger a bindings generation. If you change frontend code that relies on those bindings, but the bindings themselves are out of sync or missing, you'll see errors like "Cannot read properties of undefined (reading 'main')" until you reload the app or touch Go code to force a rebuild. This is a known friction point and is not currently addressed by any built-in hot-reload or watcher for frontend-only changes—there's no runtime hook or config to force regeneration automatically [source].

Workarounds include: m…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ezek-iel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant