elm-webpack-loader icon indicating copy to clipboard operation
elm-webpack-loader copied to clipboard

Path with " - " fails compilation.

Open pirovorster opened this issue 6 years ago • 1 comments

"version": "6.0.0"

When a directory contains a " - " like "C:\Pvt\Positron - Copy\src" the elm build fails with:

Module build failed (from ./node_modules/elm-webpack-loader/index.js): Error: Compiler process exited with error Compilation failed I do not recognize this flag:

-

Maybe you want one of these instead?

--docs=<json-file>
--debug
--output=<output-file>
--report=<report-type>
--optimize


at ChildProcess.<anonymous> (C:\Pvt\Positron - >

Copy\src\Positron.Website\node_modules\node-elm-compiler\dist\index.js:131:35)

If the directory gets changed to "C:\Pvt\Positron2\src" the issue is resolved.

pirovorster avatar Sep 22 '19 21:09 pirovorster

I also have this issue but I have no idea why because the exact same code compiled and worked just fine 5 days ago.. Literally nothing has changed and now it breaks with this exact error, any idea why @sporto or @lukewestby? Here is a link to the code and configs in question for my case.

jamesrweb avatar Dec 12 '21 19:12 jamesrweb