Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path with a space fails compilation #187

Open
Kurren123 opened this issue Dec 24, 2019 · 0 comments
Open

Path with a space fails compilation #187

Kurren123 opened this issue Dec 24, 2019 · 0 comments

Comments

@Kurren123
Copy link

Kurren123 commented Dec 24, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant