Skip to content

Heroku & Webpack error after build (4.0.0rc) #2121

@arkdelkaos

Description

@arkdelkaos

I'm having the same problem after deploying to my heroku dyno :?

$ npm start

> eecr@0.3.0 start /Users/Ark/Documents/Proyectos/EECR/dist
> node server

module.js:442
    throw err;
    ^

Error: Cannot find module '../../webpack.make'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.exports.default (express.js:70:29)
    at Object.<anonymous> (app.js:52:1)
    at Module._compile (module.js:541:32)
    at loader (/Users/Ark/Documents/Proyectos/EECR/dist/node_modules/babel-register/lib/node.js:148:5)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/Ark/Documents/Proyectos/EECR/dist/node_modules/babel-register/lib/node.js:158:7)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/Ark/Documents/Proyectos/EECR/dist/server/index.js:13:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:352:7)

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! eecr@0.3.0 start: `node server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the eecr@0.3.0 start script 'node server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the eecr package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs eecr
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls eecr
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Ark/Documents/Proyectos/EECR/dist/npm-debug.log

/Users/Ark/Documents/Proyectos/EECR/dist/npm-debug.log

$ cat  /Users/Ark/Documents/Proyectos/EECR/dist/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@3.10.3
3 info using node@v6.3.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle eecr@0.3.0~prestart: eecr@0.3.0
6 silly lifecycle eecr@0.3.0~prestart: no script for prestart, continuing
7 info lifecycle eecr@0.3.0~start: eecr@0.3.0
8 verbose lifecycle eecr@0.3.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle eecr@0.3.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/Ark/Documents/Proyectos/EECR/dist/node_modules/.bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
10 verbose lifecycle eecr@0.3.0~start: CWD: /Users/Ark/Documents/Proyectos/EECR/dist
11 silly lifecycle eecr@0.3.0~start: Args: [ '-c', 'node server' ]
12 silly lifecycle eecr@0.3.0~start: Returned: code: 1  signal: null
13 info lifecycle eecr@0.3.0~start: Failed to exec start script
14 verbose stack Error: eecr@0.3.0 start: `node server`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:242:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:852:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid eecr@0.3.0
16 verbose cwd /Users/Ark/Documents/Proyectos/EECR/dist
17 error Darwin 15.6.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v6.3.1
20 error npm  v3.10.3
21 error code ELIFECYCLE
22 error eecr@0.3.0 start: `node server`
22 error Exit status 1
23 error Failed at the eecr@0.3.0 start script 'node server'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the eecr package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node server
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs eecr
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls eecr
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.0.0rc
Node 6.3.1
npm 3.10.3
Operating System OS X 10
Item Answer
Transpiler Babel
Markup Jade
CSS SCSS
Router ui-router
Client Tests Mocha
DB MongoDB
Auth Yup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions