{"action":"created","issue":{"url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/865","repository_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit","labels_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/865/labels{/name}","comments_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/865/comments","events_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/865/events","html_url":"https://github.com/davezuko/react-redux-starter-kit/issues/865","id":160659704,"number":865,"title":"Moving an existing redux project to a different location","user":{"login":"woniesong92","id":2935309,"avatar_url":"https://avatars.githubusercontent.com/u/2935309?v=3","gravatar_id":"","url":"https://api.github.com/users/woniesong92","html_url":"https://github.com/woniesong92","followers_url":"https://api.github.com/users/woniesong92/followers","following_url":"https://api.github.com/users/woniesong92/following{/other_user}","gists_url":"https://api.github.com/users/woniesong92/gists{/gist_id}","starred_url":"https://api.github.com/users/woniesong92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woniesong92/subscriptions","organizations_url":"https://api.github.com/users/woniesong92/orgs","repos_url":"https://api.github.com/users/woniesong92/repos","events_url":"https://api.github.com/users/woniesong92/events{/privacy}","received_events_url":"https://api.github.com/users/woniesong92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-16T13:19:18Z","updated_at":"2016-06-16T22:54:18Z","closed_at":null,"body":"The kit works fine after a fresh init, but if you try to move it to a different directory (without `node_modules` and `dist` folders), it crashes with the following error. More specifically, the command `npm run deploy:prod` fails. Any ideas?\r\n\r\n```\r\n\r\n> react-redux-starter-kit@2.0.0-alpha.4 compile /Users/projFolder\r\n> better-npm-run compile\r\n\r\nrunning better-npm-run in /Users/projFolder\r\nExecuting script: compile\r\n\r\nto be executed: babel-node bin/compile\r\n/Users/projFolder/node_modules/babel-core/lib/transformation/file/index.js:591\r\n      throw err;\r\n      ^\r\n\r\nSyntaxError: /Users/projFolder/bin/compile.js: Unexpected token (10:8)\r\n   8 | const paths = config.utils_paths\r\n   9 |\r\n> 10 | ;(async function () {\r\n     |         ^\r\n  11 |   try {\r\n  12 |     debug('Run compiler')\r\n  13 |     const stats = await webpackCompiler(webpackConfig)\r\n    at Parser.pp.raise (/Users/projFolder/node_modules/babylon/lib/parser/location.js:22:13)\r\n    at Parser.pp.unexpected (/Users/projFolder/node_modules/babylon/lib/parser/util.js:89:8)\r\n    at Parser.pp.expect (/Users/projFolder/node_modules/babylon/lib/parser/util.js:83:33)\r\n    at Parser.pp.parseParenAndDistinguishExpression (/Users/projFolder/node_modules/babylon/lib/parser/expression.js:576:12)\r\n    at Parser.pp.parseExprAtom (/Users/projFolder/node_modules/babylon/lib/parser/expression.js:476:19)\r\n    at Parser.pp.parseExprSubscripts (/Users/projFolder/node_modules/babylon/lib/parser/expression.js:272:19)\r\n    at Parser.pp.parseMaybeUnary (/Users/projFolder/node_modules/babylon/lib/parser/expression.js:252:19)\r\n    at Parser.pp.parseExprOps (/Users/projFolder/node_modules/babylon/lib/parser/expression.js:183:19)\r\n    at Parser.pp.parseMaybeConditional (/Users/projFolder/node_modules/babylon/lib/parser/expression.js:165:19)\r\n    at Parser.pp.parseMaybeAssign (/Users/projFolder/node_modules/babylon/lib/parser/expression.js:128:19)t\r\n\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/bin/node',\r\n1 verbose cli   '/usr/local/bin/npm',\r\n1 verbose cli   'run',\r\n1 verbose cli   'deploy:prod' ]\r\n2 info using npm@3.8.6\r\n3 info using node@v5.11.0\r\n4 verbose run-script [ 'predeploy:prod', 'deploy:prod', 'postdeploy:prod' ]\r\n5 info lifecycle react-redux-starter-kit@2.0.0-alpha.4~predeploy:prod: react-redux-starter-kit@2.0.0-alpha.4\r\n6 silly lifecycle react-redux-starter-kit@2.0.0-alpha.4~predeploy:prod: no script for predeploy:prod, continuing\r\n7 info lifecycle react-redux-starter-kit@2.0.0-alpha.4~deploy:prod: react-redux-starter-kit@2.0.0-alpha.4\r\n8 verbose lifecycle react-redux-starter-kit@2.0.0-alpha.4~deploy:prod: unsafe-perm in lifecycle true\r\n9 verbose lifecycle react-redux-starter-kit@2.0.0-alpha.4~deploy:prod: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/user/proj/node_modules/.bin:/usr/local/bin:/Users/user/.rbenv/shims:/Users/user/.opam/system/bin:/Users/user/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin\r\n10 verbose lifecycle react-redux-starter-kit@2.0.0-alpha.4~deploy:prod: CWD: /Users/user/proj\r\n11 silly lifecycle react-redux-starter-kit@2.0.0-alpha.4~deploy:prod: Args: [ '-c', 'better-npm-run deploy:prod' ]\r\n12 silly lifecycle react-redux-starter-kit@2.0.0-alpha.4~deploy:prod: Returned: code: 1  signal: null\r\n13 info lifecycle react-redux-starter-kit@2.0.0-alpha.4~deploy:prod: Failed to exec deploy:prod script\r\n14 verbose stack Error: react-redux-starter-kit@2.0.0-alpha.4 deploy:prod: `better-npm-run deploy:prod`\r\n14 verbose stack Exit status 1\r\n14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:239:16)\r\n14 verbose stack     at emitTwo (events.js:100:13)\r\n14 verbose stack     at EventEmitter.emit (events.js:185:7)\r\n14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)\r\n14 verbose stack     at emitTwo (events.js:100:13)\r\n14 verbose stack     at ChildProcess.emit (events.js:185:7)\r\n14 verbose stack     at maybeClose (internal/child_process.js:850:16)\r\n14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)\r\n15 verbose pkgid react-redux-starter-kit@2.0.0-alpha.4\r\n16 verbose cwd /Users/user/proj\r\n17 error Darwin 15.2.0\r\n18 error argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"run\" \"deploy:prod\"\r\n19 error node v5.11.0\r\n20 error npm  v3.8.6\r\n21 error code ELIFECYCLE\r\n22 error react-redux-starter-kit@2.0.0-alpha.4 deploy:prod: `better-npm-run deploy:prod`\r\n22 error Exit status 1\r\n23 error Failed at the react-redux-starter-kit@2.0.0-alpha.4 deploy:prod script 'better-npm-run deploy:prod'.\r\n23 error Make sure you have the latest version of node.js and npm installed.\r\n23 error If you do, this is most likely a problem with the react-redux-starter-kit package,\r\n23 error not with npm itself.\r\n23 error Tell the author that this fails on your system:\r\n23 error     better-npm-run deploy:prod\r\n23 error You can get information on how to open an issue for this project with:\r\n23 error     npm bugs react-redux-starter-kit\r\n23 error Or if that isn't available, you can get their info via:\r\n23 error     npm owner ls react-redux-starter-kit\r\n23 error There is likely additional logging output above.\r\n24 verbose exit [ 1, true ]\r\n```\r\n\r\nAlso, for a different command:\r\n\r\n```\r\n$ npm start\r\n\r\n> react-redux-starter-kit@2.0.0-alpha.4 start project\r\n> better-npm-run start\r\n\r\nrunning better-npm-run in project\r\nExecuting script: start\r\n\r\nto be executed: babel-node bin/server\r\nproject/bin/server.js:1\r\n(function (exports, require, module, __filename, __dirname) { import config from '../config';\r\n                                                              ^^^^^^\r\n\r\nSyntaxError: Unexpected token import\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:387:25)\r\n    at loader (project/node_modules/babel-register/lib/node.js:158:5)\r\n    at Object.require.extensions.(anonymous function) [as .js] (project/node_modules/babel-register/lib/node.js:168:7)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Function.Module.runMain (module.js:447:10)\r\n    at project/node_modules/babel-cli/lib/_babel-node.js:160:24\r\n    at Object.<anonymous> (project/node_modules/babel-cli/lib/_babel-node.js:161:7)\r\n    at Module._compile (module.js:413:34)\r\n```\r\n\r\nIt looks like suddenly ES6 syntax doesn't work."},"comment":{"url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/comments/226636946","html_url":"https://github.com/davezuko/react-redux-starter-kit/issues/865#issuecomment-226636946","issue_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/865","id":226636946,"user":{"login":"davezuko","id":6439050,"avatar_url":"https://avatars.githubusercontent.com/u/6439050?v=3","gravatar_id":"","url":"https://api.github.com/users/davezuko","html_url":"https://github.com/davezuko","followers_url":"https://api.github.com/users/davezuko/followers","following_url":"https://api.github.com/users/davezuko/following{/other_user}","gists_url":"https://api.github.com/users/davezuko/gists{/gist_id}","starred_url":"https://api.github.com/users/davezuko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davezuko/subscriptions","organizations_url":"https://api.github.com/users/davezuko/orgs","repos_url":"https://api.github.com/users/davezuko/repos","events_url":"https://api.github.com/users/davezuko/events{/privacy}","received_events_url":"https://api.github.com/users/davezuko/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T22:54:18Z","updated_at":"2016-06-16T22:54:18Z","body":"Also might I just add that I'm very confused as to _why_ you're doing this? Is this not the same thing as just cloning it into a different directory?"}}
{"actor":{"display_login":"davezuko"}}