wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.39k stars 1.23k forks source link

[Error] TypeError: undefined is not an object (evaluating 'window['go']['main']') #2710

Closed Forgetstarzero closed 1 year ago

Forgetstarzero commented 1 year ago

Have you read the Documentation Contribution Guidelines?

Description

Using window.location.reload() in react, the 'window['go'] object cannot be obtained after the page is refreshed, and the wails do not seem to be loaded.

Self-service

mooijtech commented 1 year ago

The Wails runtime is only injected to "/", references: https://github.com/wailsapp/wails/issues/2262

leaanthony commented 1 year ago

Duplicate: https://github.com/wailsapp/wails/issues/2262