-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binding has no exported member despite already generated (the binding is not refreshed) #2551
Comments
Thanks for trying Wails and opening the issue. It looks like the binding is correct. Perhaps there's a caching issue in VSC? |
How do i delete the cache in vscode? |
This is a vscode specific problem in your environment. |
@thoriqadillah - any updates? |
In Windows, you need to change '/' to '\\' |
@leaanthony I think the binding is not updated correctly if I'm not mistaken. I tried to reproduce the issue in dummy project and got the issue, i stop the local dev and then re-run the local dev. And then it's fixed |
wails doctor
reportHowdy, I landed here by googling about a problem I'm experiencing that seems related to this issue. I've a library written in go that exposes a
The issue I've is that some structs from
I don't know if the reason the struct aren't exported is because they are not directly exposed by any function, but adding the following seems to produce the correct output. However please note that
The result from
Reading another ticket it was suggested to checkout wails trunk and try by replacing wails with the trunk version. Unsure if that referred to the problem persists using
Any more information i can provide? any other branch I should try out? |
While I can see the struct in the output of I thought the issue could be a name conflict in exported methods vs structs as I export both Below my
|
Is this still an issue? |
Description
When I make a function binding to see what I can do with this framework, I got an error that tells me the binding I made has no exported member despite presents on the wailsjs/go/main/App. This behavior only presents in dev mode
I tried to read a file from the backend and then send it to frontend, using this
after that, I'm assigning the struct on the app struct like this
after that, it generates the following on wailsjs
but when I start to import it, it says Module "../../wailsjs/go/main/App" has no exported member 'Theme"
To Reproduce
Expected behaviour
The function can be imported without error
Screenshots
Attempted Fixes
I have tried make the project from new but the problem remains
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: