- Asked By
- Asked At
- 2018-04-17 14:17:04
Found 15 possible answers.
Anyone ever seen this behavior?
agh, my `cwd` was bad…
Seems to be related to using the `cwd` option?
So the path it’s trying to spawn exists, and I can execute it manually, but it breaks when run through webpack
like this by deleting elm-stuff/ and rebuilding your project.
Maybe your elm-stuff/ directory has been corrupted? You can usually fix stuff
Could not find package elm-lang/core.
Okay, I did not change anything!
Do you approve of this plan? [Y/n] n
Some new packages are needed. Here is the upgrade plan.
⊕ /usr/local/bin/elm-make (master)
lrwxr-xr-x 1 jfiorini admin 81B Apr 2 15:18 /usr/local/bin/elm-make -> ../../../Users/jfiorini
```⊗ ll /usr/local/bin/elm-make (master)
> Could not find Elm compiler “/usr/local/bin/elm-make”. Is it installed?
> Running /usr/local/bin/elm-make /src/asurint/asurint-ui-prototype/Shared/Serenity/src/Serenity/Components.elm --yes --output /var/folders/z5/6zxqbv1924x3fr422hymsfj1wmvzpx/T/11848-16194-1b56emc.p4d3.js
Does anyone have webpack dev server successfully proxying websocket with elm? I'm experimenting with it, but my API doesn't seem to be receiving the request, and I see connection timeouts in JS console.
OMG, there was a typo in my IP address. I will go sit in the corner in shame now.
"target": "http://localhost:9000 "
"target": "http://localhost:9000 ",
my elm-package.json has:
@patrick does it happen when you save certain files? Whenever you save a file it recompiles all files that import that file as well, so files that are imported a lot tend to take longer to compile after a change
Using elm-webpack-loader in watch mode, sometimes my Elm app rebuilds in 3 seconds, other times 118 seconds. I'm using the latest webpack 4.6 and everything else. Has anyone encountered such issues and do you have tips to debug what the loader is actually spending time on?
or is the call not flattened by the elm-compiler?
so e.g. i make a function `sprite : String -> Html msg` and then call it in my view function with `sprite "up-arrow.svg"`
hmm, the question here is, if i create a function using AssetPath, and then call it with a literal in code, would this still work?
hmm, has anyone worked with elm and webpack and has a solution for resource bundling?
this gives me convenience, a small build product as well as usage tracking for my svgs. is there a way to do this when introducing elm? i know i could require the svgs in the js and then pass them as init arguments, but that would mean no usage tracking and manual decisions on which svgs to include in my map
with js and webpack it's nice that i can just require an svg and get a react component back (and the svg is added to my spritemap)
Is anyone here using webpack 4 and doing HMR with elm ?
I can confirm it works with master, should we expect a new release soon? ^^'
a few days late, but this is fixed in master right now
okay, never mind, it’s working now
wow, what do you know, seemingly that fixed it
going to try killing node_modules and reinstalling, maybe something didn’t get built correctly?
so not sure why it’s trying to reference a different elm-make
`Running ./node_modules/.bin/elm-make /Users/joe/Code/Projects/elm-blog/src/Calc.elm --yes --warn --debug --output /var/folders/23/r2b048nj4vn9xvtg7qjsy6980000gn/T/11825-66034-mpq7r6.7i4u.js`
the verbose output actually shows it’s running correctly:
and I’m passing `pathToMake: './node_modules/.bin/elm-make`
I did some digging
at startup (bootstrap_node.js:191:16)
at Function.Module.runMain (module.js:684:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at onErrorNT (internal/child_process.js:389:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at _errnoException (util.js:1031:13)
Error: spawn /Users/joe/Code/Projects/elm-blog/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm-make ENOENT
throw er; // Unhandled 'error' event
Module build failed: Error: Compiler process exited with error Compilation failed
``` ERROR in ./src/Calc.elm
but I’m getting an error now:
I’m trying to get elm-webpack-loader working with webpack 4, I got past the `this.options.elm` by installing the loader directly from github
@stefanogch what didn't work for you?