Question: webpack?

Asked By
Asked At
2017-12-07 15:03:24

Found 15 possible answers.

User Answered At Possible Answer
ilias 2017-12-07 15:03:55 How are you timing? What exactly are you timing? For that case in particular, if I "warm the cache" by compiling everything, then touch example.elm so elm-make thinks I changed it, and compile just that file to html ( elm-make example.html --output foo.html , it happens in 0.29s for me.
numiastowski 2017-12-07 15:04:34 I just compile in .elm and the output is an .elm file I call elm-make from sublime text
ilias 2017-12-07 15:07:21 so you don't pass any parameters to elm-make? Just typechecking, without creating a resulting file like index.html or elm.js ?
numiastowski 2017-12-07 15:09:05 yes does it use node when compiling ?
ilias 2017-12-07 15:13:41 Nope. I have a hard time figuring out why it would take 5 seconds. For me, I can only make it take 5 seconds if I first remove elm-stuff , meaning it has to download and install the core-libraries and elm-lang/html , and compile all of that _and_ all of your files. So I'm not sure what's going on there, but without much more fine-grained data (exact commands, exact states, exact timings) it's hard to say much about this.
numiastowski 2017-12-07 15:45:35 ok so it's really really long actually the thing is that it compiles only one file at a time probably windows I guess anyway
augustin82 2017-12-07 15:49:05 well we can try to help but you need to describe what you do, have a minimal reproducing repo, etc. you have a problem
numiastowski 2017-12-07 15:49:56 ok I can also drop my machine and buy a mac you mean a reproducing repo on github ?
augustin82 2017-12-07 15:56:21 I mean that we cannot spend time guessing what your issue is, so we need a precise context showing what doesn't work for you and test if it works fine for us or not
numiastowski 2017-12-07 15:58:41 yep... will synthesize all that in a doc
gabe246 2017-12-07 17:56:49 Hi, I'm new to Elm. I'm trying to do this kata: I should mention that I only start getting unexpected errors after I actually create src/Map.elm (the module under test), and create and expose the map function. And I don't really know where to go from here. Any guidance or pointers would be much appreciated. Module 'Test.Reporter.Console.Format' is trying to import it. I cannot find module 'Test.Runner.Failure'. First my compilation fails, saying that there are 2 files named Test.Runner.Node : one in my nodeenv's node_modules, and the other in the rtfeldman/node-test-runner package. So I tried removing the one in my node_modules, and then I get a different error: And I'm following the instructions basically to the letter, except that I'm using elm-version-manager instead of straight-up elm, and I'm using a nodeenv for all my npm install s-- the relevant one being elm-test .
ilias 2017-12-07 18:07:59 That sounds like a version conflict to me. What version of elm-test do you have installed?
gabe246 2017-12-07 18:10:03 0.18.11. Do you think I need to revert to an earlier version?
ilias 2017-12-07 18:21:31 Looking at how the tests are structured - yeah, you'll want 0.18.2. Or, you can fix the tests (remove Main.elm , remove all the dependencies in elm-package.json except for elm-lang/core and elm-community/elm-test , while also bumping the version constraints there to "4.2.0 <= v < 5.0.0" basically this
gabe246 2017-12-07 18:27:21 Thanks so much! Works like a charm :slightly_smiling_face:

Related Questions