{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/serve/issues/262","repository_url":"https://api.github.com/repos/zeit/serve","labels_url":"https://api.github.com/repos/zeit/serve/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/zeit/serve/issues/262/comments","events_url":"https://api.github.com/repos/zeit/serve/issues/262/events","html_url":"https://github.com/zeit/serve/issues/262","id":254891417,"number":262,"title":"Error deploying to Now","user":{"login":"sergiodxa","id":1312018,"avatar_url":"https://avatars2.githubusercontent.com/u/1312018?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiodxa","html_url":"https://github.com/sergiodxa","followers_url":"https://api.github.com/users/sergiodxa/followers","following_url":"https://api.github.com/users/sergiodxa/following{/other_user}","gists_url":"https://api.github.com/users/sergiodxa/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiodxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiodxa/subscriptions","organizations_url":"https://api.github.com/users/sergiodxa/orgs","repos_url":"https://api.github.com/users/sergiodxa/repos","events_url":"https://api.github.com/users/sergiodxa/events{/privacy}","received_events_url":"https://api.github.com/users/sergiodxa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Qix-","id":885648,"avatar_url":"https://avatars2.githubusercontent.com/u/885648?v=4","gravatar_id":"","url":"https://api.github.com/users/Qix-","html_url":"https://github.com/Qix-","followers_url":"https://api.github.com/users/Qix-/followers","following_url":"https://api.github.com/users/Qix-/following{/other_user}","gists_url":"https://api.github.com/users/Qix-/gists{/gist_id}","starred_url":"https://api.github.com/users/Qix-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qix-/subscriptions","organizations_url":"https://api.github.com/users/Qix-/orgs","repos_url":"https://api.github.com/users/Qix-/repos","events_url":"https://api.github.com/users/Qix-/events{/privacy}","received_events_url":"https://api.github.com/users/Qix-/received_events","type":"User","site_admin":false},"assignees":[{"login":"Qix-","id":885648,"avatar_url":"https://avatars2.githubusercontent.com/u/885648?v=4","gravatar_id":"","url":"https://api.github.com/users/Qix-","html_url":"https://github.com/Qix-","followers_url":"https://api.github.com/users/Qix-/followers","following_url":"https://api.github.com/users/Qix-/following{/other_user}","gists_url":"https://api.github.com/users/Qix-/gists{/gist_id}","starred_url":"https://api.github.com/users/Qix-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qix-/subscriptions","organizations_url":"https://api.github.com/users/Qix-/orgs","repos_url":"https://api.github.com/users/Qix-/repos","events_url":"https://api.github.com/users/Qix-/events{/privacy}","received_events_url":"https://api.github.com/users/Qix-/received_events","type":"User","site_admin":false},{"login":"leo","id":6170607,"avatar_url":"https://avatars1.githubusercontent.com/u/6170607?v=4","gravatar_id":"","url":"https://api.github.com/users/leo","html_url":"https://github.com/leo","followers_url":"https://api.github.com/users/leo/followers","following_url":"https://api.github.com/users/leo/following{/other_user}","gists_url":"https://api.github.com/users/leo/gists{/gist_id}","starred_url":"https://api.github.com/users/leo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo/subscriptions","organizations_url":"https://api.github.com/users/leo/orgs","repos_url":"https://api.github.com/users/leo/repos","events_url":"https://api.github.com/users/leo/events{/privacy}","received_events_url":"https://api.github.com/users/leo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-09-03T18:19:03Z","updated_at":"2017-10-17T06:54:31Z","closed_at":null,"author_association":"OWNER","body":"When trying to run `serve` inside a Now deployment I'm getting this error:\r\n\r\n```shell\r\n> /home/nowuser/src/node_modules/serve/node_modules/chalk/index.js:65\r\n> ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');\r\n>                                                                          ^\r\n> TypeError: Cannot read property 'close' of undefined\r\n>     at Object.<anonymous> (/home/nowuser/src/node_modules/serve/node_modules/chalk/index.js:65:74)\r\n>     at Module._compile (module.js:573:30)\r\n>     at Object.Module._extensions..js (module.js:584:10)\r\n>     at Module.load (module.js:507:32)\r\n>     at tryModuleLoad (module.js:470:12)\r\n>     at Function.Module._load (module.js:462:3)\r\n>     at Module.require (module.js:517:17)\r\n>     at require (internal/module.js:11:18)\r\n>     at Object.<anonymous> (/home/nowuser/src/node_modules/serve/bin/serve.js:13:17)\r\n>     at Module._compile (module.js:573:30)\r\n>     at Object.Module._extensions..js (module.js:584:10)\r\n>     at Module.load (module.js:507:32)\r\n>     at tryModuleLoad (module.js:470:12)\r\n>     at Function.Module._load (module.js:462:3)\r\n>     at Function.Module.runMain (module.js:609:10)\r\n>     at startup (bootstrap_node.js:158:16)\r\n> npm ERR! code ELIFECYCLE\r\n> npm ERR! errno 1\r\n> npm ERR! test-cra@0.1.0 now-start: `serve --single --silent -n ./build`\r\n> npm ERR! Exit status 1\r\n> npm ERR! \r\n> npm ERR! Failed at the test-cra@0.1.0 now-start script.\r\n> npm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n> npm ERR! A complete log of this run can be found in:\r\n> npm ERR!     /home/nowuser/.npm/_logs/2017-09-03T18_01_21_728Z-debug.log\r\n```\r\n\r\nHere's a public deployment with the error -> https://zeit.co/sergiodxa/test-cra/qtoxnwjtwk\r\n\r\nThis started to happen with v6.0.3 and keep with every version since then (it works with older versions)."},"comment":{"url":"https://api.github.com/repos/zeit/serve/issues/comments/337135680","html_url":"https://github.com/zeit/serve/issues/262#issuecomment-337135680","issue_url":"https://api.github.com/repos/zeit/serve/issues/262","id":337135680,"user":{"login":"Qix-","id":885648,"avatar_url":"https://avatars2.githubusercontent.com/u/885648?v=4","gravatar_id":"","url":"https://api.github.com/users/Qix-","html_url":"https://github.com/Qix-","followers_url":"https://api.github.com/users/Qix-/followers","following_url":"https://api.github.com/users/Qix-/following{/other_user}","gists_url":"https://api.github.com/users/Qix-/gists{/gist_id}","starred_url":"https://api.github.com/users/Qix-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qix-/subscriptions","organizations_url":"https://api.github.com/users/Qix-/orgs","repos_url":"https://api.github.com/users/Qix-/repos","events_url":"https://api.github.com/users/Qix-/events{/privacy}","received_events_url":"https://api.github.com/users/Qix-/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T06:54:31Z","updated_at":"2017-10-17T06:54:31Z","author_association":"OWNER","body":"Is there a `yarn.lock` or `package-lock.json`? If so, remove it and try your deployment again. We see this at Chalk every so often because NPM likes to mess up `ansi-styles` versions from time to time.\r\n\r\nPlease let me know if that is/isn't the case so I can continue to debug. We haven't seen reports like this on the Chalk end so I'm pretty convinced this is a version mis-match."}}
{"actor":{"display_login":"Qix-"}}