Loader always downloads Elm compiler
justinm0 opened this issue · 1 comments
justinm0 commented
Every time I build an Elm project with elm-webpack-loader it tries to download the Elm compiler from https://github.com/elm/compiler/releases/download/0.19.0/binary-for-windows-64-bit.gz . Every build I have to wait 2-3 minutes for this. I can see in Task Manager that network is being used by the process. If I try to build without an internet connection I get this error:
Error: Compiler process exited with error Compilation failed
-- ERROR -----------------------------------------------------------------------
I ran into trouble while fetching https://github.com/elm/compiler/releases/download/0.19.0/binary-for-windows-64-bit.gz
Error: getaddrinfo ENOTFOUND github.com
NOTE: You can avoid npm entirely by downloading directly from:
https://github.com/elm/compiler/releases/download/0.19.0/binary-for-windows-64-bit.gz
All this package does is download that file and put it somewhere.
--------------------------------------------------------------------------------
"C:\Program Files (x86)\Elm\0.19\bin" is in my Path environment variable.
I am using Yarn with Webpack. package.json has these dependencies (among others):
"elm": "^0.19.0-no-deps",
"elm-webpack-loader": "^6.0.0",
"webpack": "^4.40.2",
justin-midgley commented
This appears to be caused by this: elm/compiler#1957
It is not a problem with elm-webpack-loader.