{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/11389","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/11389/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/11389/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/11389/events","html_url":"https://github.com/facebook/react-native/issues/11389","id":194566741,"number":11389,"title":"SyntaxError: Strict mode does not allow function declarations in a lexically nested statement on a newly created app","user":{"login":"lednhatkhanh","id":9303093,"avatar_url":"https://avatars.githubusercontent.com/u/9303093?v=3","gravatar_id":"","url":"https://api.github.com/users/lednhatkhanh","html_url":"https://github.com/lednhatkhanh","followers_url":"https://api.github.com/users/lednhatkhanh/followers","following_url":"https://api.github.com/users/lednhatkhanh/following{/other_user}","gists_url":"https://api.github.com/users/lednhatkhanh/gists{/gist_id}","starred_url":"https://api.github.com/users/lednhatkhanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lednhatkhanh/subscriptions","organizations_url":"https://api.github.com/users/lednhatkhanh/orgs","repos_url":"https://api.github.com/users/lednhatkhanh/repos","events_url":"https://api.github.com/users/lednhatkhanh/events{/privacy}","received_events_url":"https://api.github.com/users/lednhatkhanh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-09T10:50:56Z","updated_at":"2016-12-09T10:59:52Z","closed_at":null,"body":"It worked untill yesterday\r\n\r\nI tried all these things: Remove nodejs, reinstall react-native-cli, run npm start -- --reset-cache. wipe my android emulator data.\r\n\r\nI asked the question on stackoverflow but it's look like that no one have interested in it...\r\n\r\nThis's really annoying, I can see that someone also has the same problem with me.\r\n\r\nWindows 10 64bit.\r\nLatest react-native-cli.\r\nNewly created app without any modification.\r\nNodejs 7.2.1\r\n\r\nnpm-debug\r\n\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ 'C:\\\\Program Files\\\\nodejs\\\\node.exe',\r\n1 verbose cli   'C:\\\\Users\\\\lednh\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js',\r\n1 verbose cli   'start',\r\n1 verbose cli   '--',\r\n1 verbose cli   '--reset-cache' ]\r\n2 info using npm@4.0.5\r\n3 info using node@v7.2.1\r\n4 verbose run-script [ 'prestart', 'start', 'poststart' ]\r\n5 info lifecycle ReactTodosApp@0.0.1~prestart: ReactTodosApp@0.0.1\r\n6 silly lifecycle ReactTodosApp@0.0.1~prestart: no script for prestart, continuing\r\n7 info lifecycle ReactTodosApp@0.0.1~start: ReactTodosApp@0.0.1\r\n8 verbose lifecycle ReactTodosApp@0.0.1~start: unsafe-perm in lifecycle true\r\n9 verbose lifecycle ReactTodosApp@0.0.1~start: PATH: C:\\Users\\lednh\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Users\\lednh\\Documents\\react-native\\ReactTodosApp\\node_modules\\.bin;C:\\flow;c:\\program files (x86)\\graphicsmagick-1.3.25-q16;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\Java\\jdk1.8.0_112\\bin;C:\\Users\\lednh\\AppData\\Local\\Android\\sdk\\platform-tools;C:\\Users\\lednh\\AppData\\Local\\Android\\sdk\\tools;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Python27\\python.exe;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Yarn\\bin;C:\\xampp\\php;C:\\ProgramData\\ComposerSetup\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\MongoDB\\Server\\3.4\\bin;C:\\Users\\lednh\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Users\\lednh\\AppData\\Local\\.meteor\\;C:\\Python27\\python.exe;C:\\Users\\lednh\\AppData\\Local\\Yarn\\.bin;C:\\Users\\lednh\\AppData\\Roaming\\Composer\\vendor\\bin;C:\\Users\\lednh\\AppData\\Roaming\\npm\r\n10 verbose lifecycle ReactTodosApp@0.0.1~start: CWD: C:\\Users\\lednh\\Documents\\react-native\\ReactTodosApp\r\n11 silly lifecycle ReactTodosApp@0.0.1~start: Args: [ '/d /s /c',\r\n11 silly lifecycle   'node node_modules/react-native/local-cli/cli.js start \"--reset-cache\"' ]\r\n12 silly lifecycle ReactTodosApp@0.0.1~start: Returned: code: 3221225786  signal: null\r\n13 info lifecycle ReactTodosApp@0.0.1~start: Failed to exec start script\r\n14 verbose stack Error: ReactTodosApp@0.0.1 start: `node node_modules/react-native/local-cli/cli.js start \"--reset-cache\"`\r\n14 verbose stack Exit status 3221225786\r\n14 verbose stack     at EventEmitter.<anonymous> (C:\\Users\\lednh\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\utils\\lifecycle.js:279:16)\r\n14 verbose stack     at emitTwo (events.js:106:13)\r\n14 verbose stack     at EventEmitter.emit (events.js:191:7)\r\n14 verbose stack     at ChildProcess.<anonymous> (C:\\Users\\lednh\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\utils\\spawn.js:40:14)\r\n14 verbose stack     at emitTwo (events.js:106:13)\r\n14 verbose stack     at ChildProcess.emit (events.js:191:7)\r\n14 verbose stack     at maybeClose (internal/child_process.js:885:16)\r\n14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\r\n15 verbose pkgid ReactTodosApp@0.0.1\r\n16 verbose cwd C:\\Users\\lednh\\Documents\\react-native\\ReactTodosApp\r\n17 error Windows_NT 10.0.14393\r\n18 error argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\lednh\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"start\" \"--\" \"--reset-cache\"\r\n19 error node v7.2.1\r\n20 error npm  v4.0.5\r\n21 error code ELIFECYCLE\r\n22 error ReactTodosApp@0.0.1 start: `node node_modules/react-native/local-cli/cli.js start \"--reset-cache\"`\r\n22 error Exit status 3221225786\r\n23 error Failed at the ReactTodosApp@0.0.1 start script 'node node_modules/react-native/local-cli/cli.js start \"--reset-cache\"'.\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 ReactTodosApp package,\r\n23 error not with npm itself.\r\n23 error Tell the author that this fails on your system:\r\n23 error     node node_modules/react-native/local-cli/cli.js start \"--reset-cache\"\r\n23 error You can get information on how to open an issue for this project with:\r\n23 error     npm bugs ReactTodosApp\r\n23 error Or if that isn't available, you can get their info via:\r\n23 error     npm owner ls ReactTodosApp\r\n23 error There is likely additional logging output above.\r\n24 verbose exit [ 1, true ]\r\n```\r\n\r\nAfter a while searching on google, I can see that many people are facing this problems and there are no proper fix for this..."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/265988111","html_url":"https://github.com/facebook/react-native/issues/11389#issuecomment-265988111","issue_url":"https://api.github.com/repos/facebook/react-native/issues/11389","id":265988111,"user":{"login":"Taximan","id":7695966,"avatar_url":"https://avatars.githubusercontent.com/u/7695966?v=3","gravatar_id":"","url":"https://api.github.com/users/Taximan","html_url":"https://github.com/Taximan","followers_url":"https://api.github.com/users/Taximan/followers","following_url":"https://api.github.com/users/Taximan/following{/other_user}","gists_url":"https://api.github.com/users/Taximan/gists{/gist_id}","starred_url":"https://api.github.com/users/Taximan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taximan/subscriptions","organizations_url":"https://api.github.com/users/Taximan/orgs","repos_url":"https://api.github.com/users/Taximan/repos","events_url":"https://api.github.com/users/Taximan/events{/privacy}","received_events_url":"https://api.github.com/users/Taximan/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T10:59:52Z","updated_at":"2016-12-09T10:59:52Z","body":"same here, worked yesterday, started a new project this morning and got this very same error."}}
{"actor":{"display_login":"Taximan"}}