{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react/issues/13147","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/13147/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/13147/comments","events_url":"https://api.github.com/repos/facebook/react/issues/13147/events","html_url":"https://github.com/facebook/react/issues/13147","id":338298864,"node_id":"MDU6SXNzdWUzMzgyOTg4NjQ=","number":13147,"title":"npm run build failed","user":{"login":"dhanu459","id":30932620,"node_id":"MDQ6VXNlcjMwOTMyNjIw","avatar_url":"https://avatars3.githubusercontent.com/u/30932620?v=4","gravatar_id":"","url":"https://api.github.com/users/dhanu459","html_url":"https://github.com/dhanu459","followers_url":"https://api.github.com/users/dhanu459/followers","following_url":"https://api.github.com/users/dhanu459/following{/other_user}","gists_url":"https://api.github.com/users/dhanu459/gists{/gist_id}","starred_url":"https://api.github.com/users/dhanu459/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhanu459/subscriptions","organizations_url":"https://api.github.com/users/dhanu459/orgs","repos_url":"https://api.github.com/users/dhanu459/repos","events_url":"https://api.github.com/users/dhanu459/events{/privacy}","received_events_url":"https://api.github.com/users/dhanu459/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-04T14:32:59Z","updated_at":"2018-07-04T16:58:47Z","closed_at":"2018-07-04T16:58:47Z","author_association":"NONE","body":"Hi i have a React application which is running fine on \"npm start\".\r\nBut when i try to create a build for prod deployment, its taking too long to prepare the build and finally error is thrown. \r\nTried below options too:\r\n1) re install the node modules\r\n2) Cleared the cache\r\n3) new install\r\nand also tried\r\n1) updating NPM to the latest version.\r\n2) running the application form fresh folder with all new NPM installations.\r\n\r\nnothing seems to be helpful to resolve the issue,\r\ni am kind of stuck with this and any kind of Help or suggestions are really helpful and appreciated.\r\n\r\nError reported:\r\n--------------------------\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\r\n------------------------------\r\n\r\nComplete error details:\r\n> light-bootstrap-dashboard-pro-react@1.0.0 build E:\\Santosh\\Remitrix\\Web-UI\\Remitrix_Datta\r\n> npm run build-css && react-scripts build\r\n\r\n\r\n> light-bootstrap-dashboard-pro-react@1.0.0 build-css E:\\Santosh\\Remitrix\\Web-UI\\Remitrix_Datta\r\n> node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/\r\n\r\nWrote 2 CSS files to E:\\Santosh\\Remitrix\\Web-UI\\Remitrix_Datta\\src\\\r\nCreating an optimized production build...\r\n\r\n<--- Last few GCs --->\r\n\r\n[48072:0000024CAA06F980]  3178097 ms: Mark-sweep 1427.9 (1530.0) -> 1427.9 (1526.0) MB, 1909.8 / 0.0 ms  last resort GC in old space requested\r\n\r\n\r\n<--- JS stacktrace --->\r\n\r\n==== JS stack trace =========================================\r\n\r\nSecurity context: 000001E058EA5879 <JSObject>\r\n    1: /* anonymous */(aka /* anonymous */) [0000006130A022D1 <undefined>:~8150] [pc=000000CE8067D72D](this=0000006130A022D1 <undefined>,self=000001964D603741 <AST_Call map = 000002D0511C6779>,compressor=00000147A5802979 <Compressor map = 000002D0511C7069>)\r\n    2: optimize [0000006130A022D1 <undefined>:~5511] [pc=000000CE8074ECA4](this=000001964D603741 <AST_Call map = 000002D0511C6779>,compres...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\r\n 1: node_module_register\r\n 2: v8::internal::FatalProcessOutOfMemory\r\n 3: v8::internal::FatalProcessOutOfMemory\r\n 4: v8::internal::Factory::NewCodeRaw\r\n 5: v8::internal::Factory::NewCode\r\n 6: v8::internal::modulo\r\n 7: v8::internal::compiler::ControlFlowOptimizer::TryBuildSwitch\r\n 8: v8::internal::ZoneVector<v8::internal::compiler::MoveOperands * __ptr64>::ZoneVector<v8::internal::compiler::MoveOperands * __ptr64>\r\n 9: v8::internal::compiler::Pipeline::AllocateRegistersForTesting\r\n10: v8::internal::compiler::ValueNumberingReducer::operator=\r\n11: v8::internal::CompilationJob::FinalizeJob\r\n12: v8::internal::compiler::InstructionSelector::isolate\r\n13: v8::internal::Compiler::FinalizeCompilationJob\r\n14: v8::internal::OptimizingCompileDispatcher::InstallOptimizedFunctions\r\n15: v8::internal::StackGuard::HandleInterrupts\r\n16: v8::internal::wasm::WasmOpcodes::TrapReasonMessage\r\n17: 000000CE7F9043C1\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 3\r\nnpm ERR! light-bootstrap-dashboard-pro-react@1.0.0 build: `npm run build-css && react-scripts build`\r\nnpm ERR! Exit status 3\r\nnpm ERR!\r\nnpm ERR! Failed at the light-bootstrap-dashboard-pro-react@1.0.0 build script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     absolute path\\2018-07-04T13_53_48_536Z-debug.log"}}
{"actor":{"display_login":"gaearon"}}