{"action":"created","issue":{"url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/8399","repository_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website","labels_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/8399/labels{/name}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/8399/comments","events_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/8399/events","html_url":"https://github.com/department-of-veterans-affairs/vets-website/issues/8399","id":359692922,"node_id":"MDU6SXNzdWUzNTk2OTI5MjI=","number":8399,"title":"Builds fail locally, citing heap out of memory.","user":{"login":"malchata","id":1635238,"node_id":"MDQ6VXNlcjE2MzUyMzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1635238?v=4","gravatar_id":"","url":"https://api.github.com/users/malchata","html_url":"https://github.com/malchata","followers_url":"https://api.github.com/users/malchata/followers","following_url":"https://api.github.com/users/malchata/following{/other_user}","gists_url":"https://api.github.com/users/malchata/gists{/gist_id}","starred_url":"https://api.github.com/users/malchata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malchata/subscriptions","organizations_url":"https://api.github.com/users/malchata/orgs","repos_url":"https://api.github.com/users/malchata/repos","events_url":"https://api.github.com/users/malchata/events{/privacy}","received_events_url":"https://api.github.com/users/malchata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jbalboni","id":634932,"node_id":"MDQ6VXNlcjYzNDkzMg==","avatar_url":"https://avatars2.githubusercontent.com/u/634932?v=4","gravatar_id":"","url":"https://api.github.com/users/jbalboni","html_url":"https://github.com/jbalboni","followers_url":"https://api.github.com/users/jbalboni/followers","following_url":"https://api.github.com/users/jbalboni/following{/other_user}","gists_url":"https://api.github.com/users/jbalboni/gists{/gist_id}","starred_url":"https://api.github.com/users/jbalboni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbalboni/subscriptions","organizations_url":"https://api.github.com/users/jbalboni/orgs","repos_url":"https://api.github.com/users/jbalboni/repos","events_url":"https://api.github.com/users/jbalboni/events{/privacy}","received_events_url":"https://api.github.com/users/jbalboni/received_events","type":"User","site_admin":false},"assignees":[{"login":"jbalboni","id":634932,"node_id":"MDQ6VXNlcjYzNDkzMg==","avatar_url":"https://avatars2.githubusercontent.com/u/634932?v=4","gravatar_id":"","url":"https://api.github.com/users/jbalboni","html_url":"https://github.com/jbalboni","followers_url":"https://api.github.com/users/jbalboni/followers","following_url":"https://api.github.com/users/jbalboni/following{/other_user}","gists_url":"https://api.github.com/users/jbalboni/gists{/gist_id}","starred_url":"https://api.github.com/users/jbalboni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbalboni/subscriptions","organizations_url":"https://api.github.com/users/jbalboni/orgs","repos_url":"https://api.github.com/users/jbalboni/repos","events_url":"https://api.github.com/users/jbalboni/events{/privacy}","received_events_url":"https://api.github.com/users/jbalboni/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-09-12T23:52:31Z","updated_at":"2018-09-13T18:57:06Z","closed_at":null,"author_association":"NONE","body":"When I run the build script locally and attempt to do a production build, Webpack builds bundles, the script hangs for a long period of time, and eventually I receive this error:\r\n\r\n```\r\n<--- Last few GCs --->\r\n\r\n[55309:0x103000000]    90795 ms: Mark-sweep 1400.7 (1502.1) -> 1400.7 (1471.1) MB, 1001.7 / 0.0 ms  (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1101 ms) last resort GC in old space requested\r\n[55309:0x103000000]    91733 ms: Mark-sweep 1400.7 (1471.1) -> 1400.7 (1471.1) MB, 938.4 / 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: 0x204916fa5879 <JSObject>\r\n    1: 0x2049522bd9f9 <Symbol: Symbol.match>(aka [Symbol.match])(this=0x2049ff4df571 <JSRegExp <Very long string[1604]>>,0x2049babfd7a9 <String[10]: base[href]>)\r\n    2: match [native string.js:~12] [pc=0x226e04aafecc](this=0x2049babfd7a9 <String[10]: base[href]>,pattern=0x2049ff4df571 <JSRegExp <Very long string[1604]>>)\r\n    3: _querySelectorAll [/private/var/www/vets-website/node_modules/nwsapi...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\r\n 1: node::Abort() [/usr/local/bin/node]\r\n 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]\r\n 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]\r\n 4: v8::internal::Factory::NewCodeRaw(int, bool) [/usr/local/bin/node]\r\n 5: v8::internal::Factory::NewCode(v8::internal::CodeDesc const&, unsigned int, v8::internal::Handle<v8::internal::Object>, bool, int) [/usr/local/bin/node]\r\n 6: v8::internal::RegExpMacroAssemblerX64::GetCode(v8::internal::Handle<v8::internal::String>) [/usr/local/bin/node]\r\n 7: v8::internal::RegExpCompiler::Assemble(v8::internal::RegExpMacroAssembler*, v8::internal::RegExpNode*, int, v8::internal::Handle<v8::internal::String>) [/usr/local/bin/node]\r\n 8: v8::internal::RegExpEngine::Compile(v8::internal::Isolate*, v8::internal::Zone*, v8::internal::RegExpCompileData*, v8::base::Flags<v8::internal::JSRegExp::Flag, int>, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::String>, bool) [/usr/local/bin/node]\r\n 9: v8::internal::RegExpImpl::CompileIrregexp(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, bool) [/usr/local/bin/node]\r\n10: v8::internal::RegExpImpl::IrregexpExec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::RegExpMatchInfo>) [/usr/local/bin/node]\r\n11: v8::internal::Runtime_RegExpExec(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]\r\n12: 0x226e042042fd\r\n13: 0x226e042971bb\r\n```\r\n\r\nI can work around it if I pass `--max-old-space-size=4096`, but it seems strange to me that this occurs at all. I have a 2017 MacBook Pro with 16 GB of RAM. The heap limit is 1.7 GB by default. Is this a common problem with this project?"},"comment":{"url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/comments/421114935","html_url":"https://github.com/department-of-veterans-affairs/vets-website/issues/8399#issuecomment-421114935","issue_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/8399","id":421114935,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTExNDkzNQ==","user":{"login":"malchata","id":1635238,"node_id":"MDQ6VXNlcjE2MzUyMzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1635238?v=4","gravatar_id":"","url":"https://api.github.com/users/malchata","html_url":"https://github.com/malchata","followers_url":"https://api.github.com/users/malchata/followers","following_url":"https://api.github.com/users/malchata/following{/other_user}","gists_url":"https://api.github.com/users/malchata/gists{/gist_id}","starred_url":"https://api.github.com/users/malchata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malchata/subscriptions","organizations_url":"https://api.github.com/users/malchata/orgs","repos_url":"https://api.github.com/users/malchata/repos","events_url":"https://api.github.com/users/malchata/events{/privacy}","received_events_url":"https://api.github.com/users/malchata/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T18:57:06Z","updated_at":"2018-09-13T18:57:06Z","author_association":"NONE","body":"8.12.0. Also tried with 8.11.x before upgrading."}}
{"actor":{"display_login":"malchata"}}