Closed LeifAndersen closed 3 years ago
I've been having the same issue. Downgrading to figwheel-main 0.2.11 seems to resolve the issue but I haven't spent enough time looking at the issue to discover why.
Thanks for reporting this. Sorry I haven't gotten around to it yet. I'm looking at this right now. It looks like the changes I added to support Webpack 5 introduced this regression and it's only a problem for mains scripts using bundling.
I'll see what I can figure out.
This is fixed, I will deploy the changes to 0.2.14-SNAPSHOT right now.
I am using webpack to build my application, and figwheel-main runs fine when using the
-b
and-bo
flags. However, whenever I try to use the-m
flag to run a main script, figwheel skips running the:bundle-cmd
and tries to run the (unbuilt) target. Obviously this fails.Here is my build file (
test.cljs.edn
):And I am running it with:
(Obviously
application.test
provides a function named-main
.)The error I get is:
Edit:
Oh, I should probably mention I'm using figwheel-main 0.2.13, which I think is the latest version as of writing this.