Question: anyone here? how do you use webpack with elm? this tutorial is outdated

Asked By
Asked At
2018-04-23 20:16:41

Found 15 possible answers.

User Answered At Possible Answer
kuon 2018-04-23 20:30:18
brasilikum 2018-04-23 21:15:38 Have you seen ?
harikrishmenon 2018-04-23 21:22:19 is it not ok to set the child of a textarea in order to put stuff in it it seems as soon as you edit the textarea then it no longer works but that only works initially and doesn't update if i change i was doing textarea [] [text] do i need to use the "value" attribute instead? ?"
nqthqn 2018-04-23 23:54:10 What are the cool kids doing these days to bundle Elm build up for production? I want, minification and cache busting. Not super excited about webpack.
mordrax 2018-04-24 01:15:47 is there anyway to tell what file is being compiled during a elm-make:
i think is a case statement but we've got thousands in over 400 files so if there was a quicker way, i'm all ears
the challenge here is that the make never finishes, it eats up all memory and the comp crashes, but I don't know what file is causing this
[= ] - 4 / 125
anthony.deschamps 2018-04-24 01:36:29 I'm not sure about an *elegant* solution, but if you're desperate you could use inotify to watch for when files are read, and perhaps limit elm make to a single thread in order to simplify the problem. Alternatively, if you have a sense of your module dependencies, you could invoke elm make on individual files to help narrow down the possibilities.
mordrax 2018-04-24 01:46:28 It's weird, from a cold build, the problem starts 60 modules to the end, ie 356/416 files, but in a modified build, it could happen anywhere? 1/11... so that tells me it's not the same module or at least the 60th module isn't the root cause. Sure, I can imagine the type inference engine taking one look at that and thinking... where should we put this coder... can't really blame it. Hint: Order of args
customBtn : (List (Html.Attribute msg) -> List (Html msg) -> Html msg) -> String -> msg -> Element msg
damn... that's pretty harsh:
View.Element.customBtn View.Components.Button.primary VerifyRequest "Verify Medicare" found it by remaking individual files, thanks alot @anthony.deschamps :heart:
z5h 2018-04-24 02:41:02 A bit of hand rolled make, md5, jsmin. But I'n not so cool (or a kid).
michel276 2018-04-24 06:13:02 Same here, on both fronts :grinning:
ilias 2018-04-24 07:06:53 Glad you found it :slightly_smiling_face: I've seen some reports indicating this should get better errors in 0.19, so fingers crossed :slightly_smiling_face:
mordrax 2018-04-24 07:07:58 i'm guessing the currying and type inference got into trouble because the first arg is a function which does much the same thing as the actual function call... it turned out to be a bad design anyway, scraped it
janiczek 2018-04-24 07:19:21 @mordrax strace could also help in the future (lists kernel calls like fopen("..../Foo.elm") etc.)
mordrax 2018-04-24 07:37:27 fair enough, for the less technically inclined, just remaking each file individually from root down also does the trick. i also cleaned up a few case ... of which were taking minutes to compile so overall a win! i hear 0.19 will have better visibility and bug fixes for compiling. can't wait!
passiomatic 2018-04-24 07:55:05 Looking at the Evan commits on the repo there’s a lot of polishing going on Probably the quality of the error reports bar will be raised, again :slightly_smiling_face:
mordrax 2018-04-24 08:00:50 > quality of the error reports bar will be raised If it goes any higher, it'll have to start coding for us... literally

Related Questions