LGiki / wails-template-nextjs

A wails template with Next.js
MIT License
49 stars 4 forks source link

Error when running wails dev. #1

Closed kuchaow closed 1 year ago

kuchaow commented 2 years ago

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 commented 2 years ago

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?

gmharrison commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

Have you guys found any resolution?

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

LGiki commented 1 year ago

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. :rocket: