mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 04:42:00 +08:00
Add Typescript troubleshooting guide
This commit is contained in:
parent
664f6a952c
commit
cb4ba5bca6
@ -22,7 +22,7 @@ If your built application looks like this in finder:
|
||||
<img src="/img/troubleshooting/invalid_mac_app.png"></img>
|
||||
</p>
|
||||
|
||||
it's likely that your application's `info.plist` is invalid. Update the file in `build/<yourapp>.app/Contents/info.plist`
|
||||
it''s likely that your application''s `info.plist` is invalid. Update the file in `build/<yourapp>.app/Contents/info.plist`
|
||||
and check if the data is valid, EG check the binary name is correct. To persist the changes, copy the file back to
|
||||
the `build/darwin` directory.
|
||||
|
||||
@ -56,7 +56,7 @@ window.go.main.App.TestFunc(msg, args).then((result) => { //without the 3 dots
|
||||
```
|
||||
Credit: https://github.com/wailsapp/wails/issues/1186
|
||||
|
||||
## I'm having getting proxy errors when trying to install Wails
|
||||
## I''m having getting proxy errors when trying to install Wails
|
||||
|
||||
If you are getting errors like this:
|
||||
```
|
||||
@ -68,4 +68,10 @@ The solution is to set up the proxy manually, eg:
|
||||
go env -w GO111MODULE=on
|
||||
go env -w GOPROXY=https://goproxy.cn,direct
|
||||
```
|
||||
Source: https://github.com/wailsapp/wails/issues/1233
|
||||
Source: https://github.com/wailsapp/wails/issues/1233
|
||||
|
||||
## The generated Typescript doesn''t have the correct types
|
||||
|
||||
Sometimes the generated Typescript doesn''t have the correct types. To mitigate this,
|
||||
it is possible to specify what types should be generated using the `ts_type` struct tag. For
|
||||
more details, please read [this](https://github.com/tkrajina/typescriptify-golang-structs#custom-types).
|
Loading…
Reference in New Issue
Block a user