-
-
Notifications
You must be signed in to change notification settings - Fork 570
bug: public/embed.go error missing file dir on executing buffalo dev #2338
Comments
(I added Thanks for the report. I think the issue is a side effect of the behavior of Webpack and the workaround for embed. The missing file
As described above, it seems like Webpack removes all pre-existing files when it dumps its new files into the I will check it in more detail. |
Found the root cause: was introduced to fix the other issue by gobuffalo/cli#71 and it made Webpack removes all existing files under the target destination directory by default. (https://webpack.js.org/guides/output-management/#cleaning-up-the-dist-folder) Since this issue happens randomly, just ignoring the error could be one option for now, or removing the config FYI, I will keep this issue open and will revisit again to find a better solution. |
Description
Description
Running
buffalo dev
after creating a new application causes exception.Expected Behavior
Expect the command to be completed without exit.
Actual Behavior
Terminal output (snippet.. full output further down)
public dir:
Full terminal output
To Reproduce
Executing
buffalo dev
a second time will complete successfully, though it's not ideal.Additional Context
OS: Linux Mint 20.3
Details
The text was updated successfully, but these errors were encountered: