5
0
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:
Lea Anthony 2022-06-12 14:57:45 +10:00
parent 664f6a952c
commit cb4ba5bca6
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -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).