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

elm-app build command is failing #127

Closed
kevgathuku opened this issue May 12, 2017 · 6 comments
Closed

elm-app build command is failing #127

kevgathuku opened this issue May 12, 2017 · 6 comments
Labels
bug A bug-report

Comments

@kevgathuku
Copy link

Hello,
I'm using the elm-app tool to build a production build on Heroku and it fails with the following error:

Starting production build...
remote:
remote:        /tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/create-elm-app/scripts/build.js:19
remote:        if (stats.compilation.errors.length > 0) {
remote:        ^
remote:
remote:        TypeError: Cannot read property 'compilation' of undefined
remote:        at webpack.run (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/create-elm-app/scripts/build.js:19:12)
remote:        at onCompiled (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/webpack/lib/Compiler.js:232:21)
remote:        at /tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/webpack/lib/Compiler.js:484:19
remote:        at /tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/tapable/lib/Tapable.js:221:11
remote:        at _addModuleChain (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/webpack/lib/Compilation.js:468:12)
remote:        at processModuleDependencies.err (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/webpack/lib/Compilation.js:445:14)
remote:        at finalCallbackAddModuleDependencies (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/webpack/lib/Compilation.js:351:12)
remote:        at /tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/async/dist/async.js:421:16
remote:        at iteratorCallback (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/async/dist/async.js:996:13)
remote:        at /tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/async/dist/async.js:906:16
remote:        at finalCallbackAddModuleDependencies (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/webpack/lib/Compilation.js:351:12)
remote:        at /tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/async/dist/async.js:421:16
remote:        at iteratorCallback (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/async/dist/async.js:996:13)
remote:        at /tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/async/dist/async.js:906:16
remote:        at errorAndCallback (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/webpack/lib/Compilation.js:217:6)
remote:        at errorOrWarningAndCallback (/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/node_modules/webpack/lib/Compilation.js:247:14)
remote:
remote:        npm ERR! Linux 3.13.0-112-generic
remote:        npm ERR! argv "/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/.heroku/node/bin/node" "/tmp/build_8b9185c204b28f464c5bf2e998f92e5f/.heroku/node/bin/npm" "run" "build"
remote:        npm ERR! node v6.10.3
remote:        npm ERR! npm  v3.10.10

I'm not sure how to fix it. Any help would be very much appreciated. Thanks!

@kevgathuku kevgathuku changed the title elm-app build fails on Heroku elm-app build command is failing May 12, 2017
@kevgathuku
Copy link
Author

kevgathuku commented May 12, 2017

In this instance, I have create-elm-app installed as a local dependency in my package.json file.
Here's the repo with the failing build command: https://github.com/kevgathuku/elm-torrent-dbx

@kevgathuku
Copy link
Author

I got this fixed by ejecting the tool and running the generated build.js script directly. Worked like a charm 😄

@EvertVerboven
Copy link

Please reopen, I have the same problem in a docker containter elm and create-elm app installed globally

@kevgathuku kevgathuku reopened this Jun 2, 2017
@kevgathuku
Copy link
Author

@EvertYipYip does ejecting the tool still cause the same problem?

@EvertVerboven
Copy link

@kevgathuku did not test that yet. But in my opinion that isn't a robust solution. Yes I will be able to build my tool then, But it doen't fix the bug with create-elm-app

@halfzebra halfzebra added the bug A bug-report label Jun 2, 2017
@halfzebra
Copy link
Owner

@EvertYipYip thanks for reopening the issue!

It should work as a local dependency, we'll look into that shortly 🙂

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

No branches or pull requests

3 participants