Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error when running wails dev. #1

Closed
kuchaow opened this issue Nov 3, 2022 · 5 comments
Closed

Error when running wails dev. #1

kuchaow opened this issue Nov 3, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@kuchaow
Copy link

kuchaow commented Nov 3, 2022

I encounter this error when I first try to run "wails dev":

ERROR:
main.go:14:12: pattern frontend/out/: cannot embed directory frontend/out/: invalid name *

The way to replicate it is to make a new project with the template command, then solve the first issue of incorrect labeling in the main.go file from "RBG" to "BackgroundColour" and then run "wails dev".

@LGiki
Copy link
Owner

LGiki commented Nov 5, 2022

Thanks for reporting this issue, the problem with RGBA has been fixed.
But I can't reproduce the error you mentioned, can you please provide the output of running wails dev?

@LGiki LGiki self-assigned this Nov 5, 2022
@LGiki LGiki added the bug Something isn't working label Nov 5, 2022
@gmharrison
Copy link

I'm encountering the same problem while running wails dev. Here is the output I'm seeing, along with the directory that has been created called *.

Screen Shot 2022-11-16 at 1 55 11 PM

Screen Shot 2022-11-16 at 1 55 01 PM

@jbrodriguez
Copy link

have the same error, removed the * from the go:embed directive and it seems to be working fine, not sure about build time though

@siddmo
Copy link

siddmo commented Dec 2, 2022

Have you guys found any resolution?

Update: I got it working with go:embed all:frontend/out

lunarca added a commit to lunarca/wails-template-nextjs that referenced this issue Dec 24, 2022
Changes the `assets` embed to use `all:frontend/out` instead of `frontend/out/*` to prevent the error described in LGiki#1. Fix recommended by @siddmo.
lunarca added a commit to lunarca/wails-template-nextjs that referenced this issue Dec 24, 2022
Changes the `assets` embed to use `all:frontend/out` instead of `frontend/out/*` to prevent the error described in LGiki#1. Fix recommended by @siddmo.
lunarca added a commit to lunarca/wails-template-nextjs that referenced this issue Dec 24, 2022
Changes the `assets` embed to use `all:frontend/out` instead of `frontend/out/*` to prevent the error described in LGiki#1. Fix recommended by @siddmo.
@LGiki
Copy link
Owner

LGiki commented Dec 29, 2022

Sorry, I was busy with some personal matters and did not deal with this issue in time.
Many thanks to @siddmo and @lunarca . I just merged the PR from @lunarca and this issue should be solved now. 🚀

@LGiki LGiki closed this as completed Dec 29, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants