elm-community/elm-webpack-loader

Path with a space fails compilation

Kurren123 opened this issue · 0 comments

OS: Windows

There's a space in my windows user name, so my path to elm is this:
C:\\Users\\Kurren Nischal\\Documents\\Development stuff\\MyProject\\node_modules\\.bin\\elm

When running webpack I get this error:

webpack --env.mode production

elm options:
{
  optimize: true,
  pathToElm: 'C:\\Users\\Kurren Nischal\\Documents\\Development stuff\\MyProject\\node_modules\\.bin\\elm'
}
Hash: 3da26b31458b74675645
Version: webpack 4.29.6
Time: 588ms
Built at: 12/24/2019 22:36:09
 1 asset
Entrypoint main = main.js
[0] ./front-end/index.js 122 bytes {0} [built]
[1] ./front-end/elm/Main.elm 825 bytes {0} [built] [failed] [1 error]

ERROR in ./front-end/elm/Main.elm
Module build failed (from ./node_modules/elm-webpack-loader/index.js):
Error: Compiler process exited with error Compilation failed
I am having trouble with this argument:

    C:\Users\Kurren

It is supposed to be a <elm-file> value, like one of these:

    Main.elm
    src/Main.elm

Please advise. I'm looking for a place where I can escape the path with quotes. Thanks