Closed savish closed 6 years ago
Thank you for reporting this and the detailed information.
@neildaemond can you have a look at this? We will need to expand test to cover this regression.
Hi, yes thank you for the amount of detail. You are completely right, I can see how this can fail - I just didn't think of elm project with that structure. I'll try rectify that now.
Fix published as 0.11.1 @savish can you give it a try?
Hey! Works as expected. Thank you for the quick fix!
Problem
Using the same brunch configuration for an app running phoenix+elm, with one version using elm-brunch 0.10.0 and the other using 0.11.0, the following error always occurs on 0.11.0:
There is no error on the 0.10.0 version. However, the output is slightly different. The
elm-compile
line looks like:It seems as though the 0.11.0 version cannot locate the
Main.elm
file in thesrc
folder. The relevant section ofbrunch-config.js
is given below, as well as the elm files, relative to the root (theassets
folder).Possible cause
It seems as though this issue is related to a slight change in the
index.js
file, where the function call toelmCompile
now receives apath.basename(src)
as opposed to just thesrc
, even if theindependentModules
flag is false.Information
brunch-config.js (same for the 0.10.0 and 0.11.0 versions)
File layout: