Recently I migrated mine react project to typescript with CRA. After a while, builds became slower. (around 300s for the build)
Lastly when I converted the following file from .js to .ts:
I discovered that with findQuestion() code compiles in more than 1000 s.
but if I add FilterQuestions() I get Ineffective mark-compacts near heap allocation failed!
To mention that the project starts and runs even if typescript code is not compiled.
//.... imports
const _properties = types.model({
template_uuid: types.identifier,
title: "",
description: "",
style: "",
external_key: types.optional(types.model("template_ext_key", {
actno: 0,
soknadId: 0
}),{})
});
export const Schema = types.model("Schema", {
//... a lot of fields
questions: types.optional(types.array(UnionQuestions),[]),
consent_templates: types.optional(types.array(ConsentTemplate), [])
})
.views(self =>({
//method below throws Ineffective mark-compacts near heap allocation failed when try to build
**filterQuestions(question_uuid:string){
let questions = self.questions.filter(q => q.properties.question_uuid !== question_uuid)
return questions
},**
// method below drastically slows down the build
findQuestion(question_uuid:string){
const question = self.questions.find(q=>{
return q.properties.question_uuid === question_uuid
})
return question
},
isAccessibleForPatient:()=>return self.accessible === "patient",
accessibleFor()=>return self.accessible
}))
.actions(self => ({
// ... it works with this block
}));
my package.json file:
{
"name": "adopus-portal-typescript",
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^4.8.3",
"@material-ui/icons": "^4.5.1",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^8.0.3",
"@trendmicro/react-sidenav": "^0.5.0",
"@types/jest": "^24.0.0",
"@types/node": "^13.1.6",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"@types/react-router-dom": "^5.1.3",
"@types/uuid": "^3.4.7",
"all": "^0.0.0",
"antd": "^3.26.6",
"apollo-boost": "^0.4.7",
"apollo-cache": "^1.3.4",
"apollo-client": "^2.6.8",
"apollo-link": "^1.2.13",
"apollo-utilities": "^1.3.3",
"axios": "^0.19.1",
"graphql": "^14.5.8",
"immer": "^5.3.2",
"js-sha256": "^0.9.0",
"lodash": "^4.17.15",
"mobx": "^5.15.2",
"mobx-react-lite": "^1.5.2",
"mobx-state-tree": "^3.15.0",
"moment": "^2.24.0",
"rc-datepicker": "^5.0.15",
"react": "^16.12.0",
"react-apollo": "^3.1.3",
"react-bootstrap": "^1.0.0-beta.16",
"react-dom": "^16.12.0",
"react-outside-click-handler": "^1.3.0",
"react-reveal": "^1.2.2",
"react-router-dom": "^5.1.2",
"react-scripts": "3.3.0",
"react-select": "^3.0.8",
"regexpp": "^3.0.0",
"sweetalert2": "^9.5.4",
"typescript": "^3.7.5",
"use-immer": "^0.3.5",
"uuid": "^3.3.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-react": "^4.1.0"
}
}
tsconfig.json file:
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"noImplicitReturns": true,
"jsx": "react"
},
"include": [
"src"
]
}
this is the cli output:
yarn run v1.21.1
$ react-scripts build
Creating an optimized production build...
<--- Last few GCs --->
tart of marking 1124 ms) (average mu = 0.195, current mu = 0.080) [6860:000002C85ACEDC20] 1596665 ms: Mark-sweep 2044.5 (2054.5) -> 2042.1 (2053.8) MB, 733.4 / 0.0 ms (+ 224.1 ms in 50 steps since start of marking, biggest step 9.4 ms, walltime since start of marking 985 ms) (average mu = 0.127, current mu = 0.028) al[6860:000002C85ACEDC20] 1598454 ms: Mark-sweep 2043.3 (2053.8) -> 2042.4 (2053.0) MB, 1783.0 / 0.0 ms (average mu = 0.053, current mu = 0.003) allocation failure scavenge might not succeed
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 00007FF77E87404D]
Security context: 0x03fa58ec08a1 <JSObject>
1: write [000002A62B1C4569] [C:\Sites\adopus-portal\node_modules\typescript\lib\typescript.js:~12994] [pc=00000314C50E377B](this=0x02a62b1c1f01 <Object map = 00000217F49B5C21>,0x0132154d1ac9 <String[#1]: :>)
2: writePunctuation(aka writePunctuation) [000001970EAC5D79] [C:\Sites\adopus-portal\node_modules\typescript\lib\typescript.js:~93092] [pc=000...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Writing Node.js report to file: report.20200201.190457.6860.0.001.json
Node.js report completed
1: 00007FF77DCA124F napi_wrap+124431
2: 00007FF77DC42A06 public: bool __cdecl v8::base::CPU::has_sse(void)const __ptr64+34502
3: 00007FF77DC436C6 public: bool __cdecl v8::base::CPU::has_sse(void)const __ptr64+37766
4: 00007FF77E4482DE private: void __cdecl v8::Isolate::ReportExternalAllocationLimitReached(void) __ptr64+94
5: 00007FF77E430321 public: class v8::SharedArrayBuffer::Contents __cdecl v8::SharedArrayBuffer::Externalize(void) __ptr64+833
6: 00007FF77E2FDBEC public: static void __cdecl v8::internal::Heap::EphemeronKeyWriteBarrierFromCode(unsigned __int64,unsigned __int64,class v8::internal::Isolate * __ptr64)+1436
7: 00007FF77E308F90 public: void __cdecl v8::internal::Heap::ProtectUnprotectedMemoryChunks(void) __ptr64+1312
8: 00007FF77E305AC4 public: static bool __cdecl v8::internal::Heap::PageFlagsAreConsistent(class v8::internal::HeapObject)+3204
9: 00007FF77E2FB353 public: bool __cdecl v8::internal::Heap::CollectGarbage(enum v8::internal::AllocationSpace,enum v8::internal::GarbageCollectionReason,enum v8::GCCallbackFlags) __ptr64+1283
10: 00007FF77E2F9B24 public: void __cdecl v8::internal::Heap::AddRetainedMap(class v8::internal::Handle<class v8::internal::Map>) __ptr64+2356
11: 00007FF77E31ADF5 public: class v8::internal::Handle<class v8::internal::HeapObject> __cdecl v8::internal::Factory::NewFillerObject(int,bool,enum v8::internal::AllocationType) __ptr64+53
12: 00007FF77E086E19 ??4iterator@JumpTableTargetOffsets@interpreter@internal@v8@@QEAAAEAV01234@$$QEAV01234@@Z+4057
13: 00007FF77E87404D public: virtual bool __cdecl v8::internal::SetupIsolateDelegate::SetupHeap(class v8::internal::Heap * __ptr64) __ptr64+567949
14: 00000314C50E377B
Done in 1623.07s.
this is report issued report.20200201.190457.6860.0.001.json:
{
"header": {
"reportVersion": 1,
"event": "Allocation failed - JavaScript heap out of memory",
"trigger": "FatalError",
"filename": "report.20200201.190457.6860.0.001.json",
"dumpEventTime": "2020-02-01T19:04:57Z",
"dumpEventTimeStamp": "1580580297811",
"processId": 6860,
"cwd": "C:\\Sites\\adopus-portal",
"commandLine": [
"C:\\Program Files\\nodejs\\node.exe",
"--max-old-space-size=2048",
"C:\\Sites\\adopus-portal\\node_modules\\fork-ts-checker-webpack-plugin\\lib\\service.js"
],
"nodejsVersion": "v12.13.1",
"wordSize": 64,
"arch": "x64",
"platform": "win32",
"componentVersions": {
"node": "12.13.1",
"v8": "7.7.299.13-node.16",
"uv": "1.33.1",
"zlib": "1.2.11",
"brotli": "1.0.7",
"ares": "1.15.0",
"modules": "72",
"nghttp2": "1.39.2",
"napi": "5",
"llhttp": "1.1.4",
"http_parser": "2.8.0",
"openssl": "1.1.1d",
"cldr": "35.1",
"icu": "64.2",
"tz": "2019c",
"unicode": "12.1"
},
"release": {
"name": "node",
"lts": "Erbium",
"headersUrl": "https://nodejs.org/download/release/v12.13.1/node-v12.13.1-headers.tar.gz",
"sourceUrl": "https://nodejs.org/download/release/v12.13.1/node-v12.13.1.tar.gz",
"libUrl": "https://nodejs.org/download/release/v12.13.1/win-x64/node.lib"
},
"osName": "Windows_NT",
"osRelease": "10.0.17134",
"osVersion": "Windows 10 Enterprise",
"osMachine": "x86_64",
"cpus": [
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 2950421,
"nice": 0,
"sys": 2462468,
"idle": 14204578,
"irq": 294921
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 1684500,
"nice": 0,
"sys": 1303453,
"idle": 16629234,
"irq": 32421
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 3180984,
"nice": 0,
"sys": 2659421,
"idle": 13776781,
"irq": 23187
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 1956890,
"nice": 0,
"sys": 1418218,
"idle": 16242078,
"irq": 15515
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 3539625,
"nice": 0,
"sys": 2513015,
"idle": 13564546,
"irq": 27265
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 2563375,
"nice": 0,
"sys": 1366000,
"idle": 15687812,
"irq": 20093
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 3668296,
"nice": 0,
"sys": 2280281,
"idle": 13668609,
"irq": 17859
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 2599343,
"nice": 0,
"sys": 2430656,
"idle": 14587171,
"irq": 40656
}
],
"networkInterfaces": [
{
"name": "vEthernet (DockerNAT)",
"internal": false,
"mac": "00:15:5d:8b:e1:4f",
"address": "fe80::8d3c:6d13:744f:d396",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 28
},
{
"name": "vEthernet (DockerNAT)",
"internal": false,
"mac": "00:15:5d:8b:e1:4f",
"address": "10.0.75.1",
"netmask": "255.255.255.0",
"family": "IPv4"
},
{
"name": "VirtualBox Host-Only Network",
"internal": false,
"mac": "0a:00:27:00:00:14",
"address": "fe80::11be:a0dc:4b53:b244",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 20
},
{
"name": "VirtualBox Host-Only Network",
"internal": false,
"mac": "0a:00:27:00:00:14",
"address": "192.168.56.1",
"netmask": "255.255.255.0",
"family": "IPv4"
},
{
"name": "Npcap Loopback Adapter",
"internal": false,
"mac": "02:00:4c:4f:4f:50",
"address": "fe80::748c:9f80:f780:85a4",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 19
},
{
"name": "Npcap Loopback Adapter",
"internal": false,
"mac": "02:00:4c:4f:4f:50",
"address": "169.254.133.164",
"netmask": "255.255.0.0",
"family": "IPv4"
},
{
"name": "Wi-Fi",
"internal": false,
"mac": "34:02:86:af:6a:31",
"address": "2001:4643:b60e:0:6c6b:ee20:1e3d:7183",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 0
},
{
"name": "Wi-Fi",
"internal": false,
"mac": "34:02:86:af:6a:31",
"address": "2001:4643:b60e:0:c175:6813:9862:6005",
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
"family": "IPv6",
"scopeid": 0
},
{
"name": "Wi-Fi",
"internal": false,
"mac": "34:02:86:af:6a:31",
"address": "fe80::6c6b:ee20:1e3d:7183",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 29
},
{
"name": "Wi-Fi",
"internal": false,
"mac": "34:02:86:af:6a:31",
"address": "10.0.0.7",
"netmask": "255.255.255.0",
"family": "IPv4"
},
{
"name": "Loopback Pseudo-Interface 1",
"internal": true,
"mac": "00:00:00:00:00:00",
"address": "::1",
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
"family": "IPv6",
"scopeid": 0
},
{
"name": "Loopback Pseudo-Interface 1",
"internal": true,
"mac": "00:00:00:00:00:00",
"address": "127.0.0.1",
"netmask": "255.0.0.0",
"family": "IPv4"
},
{
"name": "vEthernet (Default Switch)",
"internal": false,
"mac": "62:15:ca:30:86:01",
"address": "fe80::f02f:675e:d44d:4be5",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 4
},
{
"name": "vEthernet (Default Switch)",
"internal": false,
"mac": "62:15:ca:30:86:01",
"address": "172.21.88.193",
"netmask": "255.255.255.240",
"family": "IPv4"
}
],
"host": "igorPC"
},
"javascriptStack": {
"message": "No stack.",
"stack": [
"Unavailable."
]
},
"nativeStack": [
{
"pc": "0x00007ff77db51729",
"symbol": "std::basic_ostream<char,std::char_traits<char> >::operator<<+10873"
},
{
"pc": "0x00007ff77db55b4c",
"symbol": "std::basic_ostream<char,std::char_traits<char> >::operator<<+28316"
},
{
"pc": "0x00007ff77db54b08",
"symbol": "std::basic_ostream<char,std::char_traits<char> >::operator<<+24152"
},
{
"pc": "0x00007ff77dc4369b",
"symbol": "v8::base::CPU::has_sse+37723"
},
{
"pc": "0x00007ff77e4482de",
"symbol": "v8::Isolate::ReportExternalAllocationLimitReached+94"
},
{
"pc": "0x00007ff77e430321",
"symbol": "v8::SharedArrayBuffer::Externalize+833"
},
{
"pc": "0x00007ff77e2fdbec",
"symbol": "v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436"
},
{
"pc": "0x00007ff77e308f90",
"symbol": "v8::internal::Heap::ProtectUnprotectedMemoryChunks+1312"
},
{
"pc": "0x00007ff77e305ac4",
"symbol": "v8::internal::Heap::PageFlagsAreConsistent+3204"
},
{
"pc": "0x00007ff77e2fb353",
"symbol": "v8::internal::Heap::CollectGarbage+1283"
},
{
"pc": "0x00007ff77e2f9b24",
"symbol": "v8::internal::Heap::AddRetainedMap+2356"
},
{
"pc": "0x00007ff77e31adf5",
"symbol": "v8::internal::Factory::NewFillerObject+53"
},
{
"pc": "0x00007ff77e086e19",
"symbol": "v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+4057"
},
{
"pc": "0x00007ff77e87404d",
"symbol": "v8::internal::SetupIsolateDelegate::SetupHeap+567949"
},
{
"pc": "0x00000314c50e377b",
"symbol": ""
}
],
"javascriptHeap": {
"totalMemory": 2156163072,
"totalCommittedMemory": 2156163072,
"usedMemory": 2141806824,
"availableMemory": 46371648,
"memoryLimit": 2197815296,
"heapSpaces": {
"read_only_space": {
"memorySize": 262144,
"committedMemory": 262144,
"capacity": 261872,
"used": 32296,
"available": 229576
},
"new_space": {
"memorySize": 4194304,
"committedMemory": 4194304,
"capacity": 2094976,
"used": 200552,
"available": 1894424
},
"old_space": {
"memorySize": 2113777664,
"committedMemory": 2113777664,
"capacity": 2104971224,
"used": 2104470776,
"available": 500448
},
"code_space": {
"memorySize": 2523136,
"committedMemory": 2523136,
"capacity": 2161760,
"used": 2161760,
"available": 0
},
"map_space": {
"memorySize": 1052672,
"committedMemory": 1052672,
"capacity": 688880,
"used": 688880,
"available": 0
},
"large_object_space": {
"memorySize": 34304000,
"committedMemory": 34304000,
"capacity": 34249008,
"used": 34249008,
"available": 0
},
"code_large_object_space": {
"memorySize": 49152,
"committedMemory": 49152,
"capacity": 3552,
"used": 3552,
"available": 0
},
"new_large_object_space": {
"memorySize": 0,
"committedMemory": 0,
"capacity": 2094976,
"used": 0,
"available": 2094976
}
}
},
"resourceUsage": {
"userCpuSeconds": 1843.52,
"kernelCpuSeconds": 15.453,
"cpuConsumptionPercent": 115.751,
"maxRss": 2247430144,
"pageFaults": {
"IORequired": 1055075,
"IONotRequired": 0
},
"fsActivity": {
"reads": 3315,
"writes": 6
}
},
"libuv": [
],
"environmentVariables": {
"ADVOCA_URL": "https://test.advoca.localhost",
"ALLUSERSPROFILE": "C:\\ProgramData",
"APPDATA": "C:\\Users\\User\\AppData\\Roaming",
"BABEL_ENV": "production",
"BROWSER": "none",
"CHECK_SYNTACTIC_ERRORS": "true",
"CommonProgramFiles": "C:\\Program Files\\Common Files",
"CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
"CommonProgramW6432": "C:\\Program Files\\Common Files",
"COMPILER_OPTIONS": "{}",
"COMPOSE_CONVERT_WINDOWS_PATHS": "true",
"COMPUTERNAME": "IGORPC",
"ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
"configsetroot": "C:\\WINDOWS\\ConfigSetRoot",
"CONTEXT": "C:\\Sites\\adopus-portal",
"DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
"ESLINT": "false",
"ESLINT_OPTIONS": "{}",
"GIT_SSH": "C:\\Program Files\\PuTTY\\plink.exe",
"GOPATH": "C:\\Users\\User\\go",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\User",
"INIT_CWD": "C:\\Sites\\adopus-portal",
"JAVA_HOME": "C:\\Program Files (x86)\\Java\\jdk1.8.0_172",
"LOCALAPPDATA": "C:\\Users\\User\\AppData\\Local",
"LOGONSERVER": "\\\\IGORPC",
"MEMORY_LIMIT": "2048",
"Nmap": "C:\\Program Files (x86)\\Nmap",
"NODE": "C:\\Program Files\\nodejs\\node.exe",
"NODE_ENV": "production",
"NODE_PATH": "",
"npm_config_argv": "{\"remain\":[],\"cooked\":[\"run\",\"build\"],\"original\":[\"build\"]}",
"npm_config_bin_links": "true",
"npm_config_ignore_optional": "",
"npm_config_ignore_scripts": "",
"npm_config_init_license": "MIT",
"npm_config_init_version": "1.0.0",
"npm_config_registry": "https://registry.yarnpkg.com",
"npm_config_save_prefix": "^",
"npm_config_strict_ssl": "true",
"npm_config_user_agent": "yarn/1.21.1 npm/? node/v12.13.1 win32 x64",
"npm_config_version_commit_hooks": "true",
"npm_config_version_git_message": "v%s",
"npm_config_version_git_sign": "",
"npm_config_version_git_tag": "true",
"npm_config_version_tag_prefix": "v",
"npm_execpath": "C:\\Program Files (x86)\\Yarn\\bin\\yarn.js",
"npm_lifecycle_event": "build",
"npm_lifecycle_script": "react-scripts build",
"npm_node_execpath": "C:\\Program Files\\nodejs\\node.exe",
"npm_package_browserslist_development_0": "last 1 chrome version",
"npm_package_browserslist_development_1": "last 1 firefox version",
"npm_package_browserslist_development_2": "last 1 safari version",
"npm_package_browserslist_production_0": ">0.2%",
"npm_package_browserslist_production_1": "not dead",
"npm_package_browserslist_production_2": "not op_mini all",
"npm_package_dependencies_all": "^0.0.0",
"npm_package_dependencies_antd": "^3.26.6",
"npm_package_dependencies_apollo_boost": "^0.4.7",
"npm_package_dependencies_apollo_cache": "^1.3.4",
"npm_package_dependencies_apollo_client": "^2.6.8",
"npm_package_dependencies_apollo_link": "^1.2.13",
"npm_package_dependencies_apollo_utilities": "^1.3.3",
"npm_package_dependencies_axios": "^0.19.1",
"npm_package_dependencies_graphql": "^14.5.8",
"npm_package_dependencies_immer": "^5.3.2",
"npm_package_dependencies_js_sha256": "^0.9.0",
"npm_package_dependencies_lodash": "^4.17.15",
"npm_package_dependencies_mobx": "^5.15.2",
"npm_package_dependencies_mobx_react_lite": "^1.5.2",
"npm_package_dependencies_mobx_state_tree": "^3.15.0",
"npm_package_dependencies_moment": "^2.24.0",
"npm_package_dependencies_rc_datepicker": "^5.0.15",
"npm_package_dependencies_react": "^16.12.0",
"npm_package_dependencies_react_apollo": "^3.1.3",
"npm_package_dependencies_react_bootstrap": "^1.0.0-beta.16",
"npm_package_dependencies_react_dom": "^16.12.0",
"npm_package_dependencies_react_outside_click_handler": "^1.3.0",
"npm_package_dependencies_react_reveal": "^1.2.2",
"npm_package_dependencies_react_router_dom": "^5.1.2",
"npm_package_dependencies_react_scripts": "3.3.0",
"npm_package_dependencies_react_select": "^3.0.8",
"npm_package_dependencies_regexpp": "^3.0.0",
"npm_package_dependencies_sweetalert2": "^9.5.4",
"npm_package_dependencies_typescript": "~3.7.2",
"npm_package_dependencies_use_immer": "^0.3.5",
"npm_package_dependencies_uuid": "^3.3.3",
"npm_package_dependencies__material_ui_core": "^4.8.3",
"npm_package_dependencies__material_ui_icons": "^4.5.1",
"npm_package_dependencies__testing_library_jest_dom": "^4.2.4",
"npm_package_dependencies__testing_library_react": "^9.3.2",
"npm_package_dependencies__testing_library_user_event": "^8.0.3",
"npm_package_dependencies__trendmicro_react_sidenav": "^0.5.0",
"npm_package_dependencies__types_jest": "^24.0.0",
"npm_package_dependencies__types_node": "^13.1.6",
"npm_package_dependencies__types_react": "^16.9.0",
"npm_package_dependencies__types_react_dom": "^16.9.0",
"npm_package_dependencies__types_react_router_dom": "^5.1.3",
"npm_package_dependencies__types_uuid": "^3.4.7",
"npm_package_devDependencies_tslint": "^5.20.1",
"npm_package_devDependencies_tslint_config_prettier": "^1.18.0",
"npm_package_devDependencies_tslint_react": "^4.1.0",
"npm_package_eslintConfig_extends": "react-app",
"npm_package_name": "adopus-portal-typescript",
"npm_package_private": "true",
"npm_package_readmeFilename": "readme.docker.txt",
"npm_package_scripts_build": "react-scripts build",
"npm_package_scripts_eject": "react-scripts eject",
"npm_package_scripts_start": "react-scripts start",
"npm_package_scripts_test": "react-scripts test",
"npm_package_version": "0.1.0",
"NUMBER_OF_PROCESSORS": "8",
"NVM_HOME": "C:\\Users\\User\\AppData\\Roaming\\nvm",
"NVM_SYMLINK": "C:\\Program Files\\nodejs",
"OneDrive": "C:\\Users\\User\\OneDrive",
"OS": "Windows_NT",
"Path": "C:\\Users\\User\\AppData\\Local\\Temp\\yarn--1580578676150-0.03995858093112847;C:\\Sites\\adopus-portal\\node_modules\\.bin;C:\\Users\\User\\AppData\\Local\\Yarn\\Data\\link\\node_modules\\.bin;C:\\Program Files\\libexec\\lib\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Program Files\\lib\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\wamp\\bin\\php\\php7.2.4;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\ComposerSetup\\bin;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\CrSSL\\bin;C:\\Users\\User\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\TortoiseGit\\bin;C:\\HashiCorp\\Vagrant\\bin;C:\\Go\\bin;C:\\Program Files (x86)\\Yarn\\bin\\;C:\\Program Files\\Git\\cmd;C:\\RailsInstaller\\Git\\cmd;C:\\RailsInstaller\\Ruby2.3.3\\bin;C:\\cross_platform\\flutter_windows_v0.5.1-beta\\flutter\\bin;C:\\Users\\User\\AppData\\Local\\atom\\bin;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\User\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\User\\AppData\\Roaming\\Composer\\vendor\\bin;C:\\Users\\User\\AppData\\Roaming\\npm;C:\\Users\\User\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\User\\.dotnet\\tools;C:\\Users\\igor\\AppData\\Roaming\\npm;C:\\Users\\User\\go\\bin;C:\\Users\\User\\AppData\\Local\\Yarn\\bin",
"PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC",
"PROCESSOR_ARCHITECTURE": "AMD64",
"PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 71 Stepping 1, GenuineIntel",
"PROCESSOR_LEVEL": "6",
"PROCESSOR_REVISION": "4701",
"ProgramData": "C:\\ProgramData",
"ProgramFiles": "C:\\Program Files",
"ProgramFiles(x86)": "C:\\Program Files (x86)",
"ProgramW6432": "C:\\Program Files",
"PROMPT": "$P$G",
"PSModulePath": "C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\\",
"PUBLIC": "C:\\Users\\Public",
"REACT_APP_CHAT_URL": "http://192.168.250.224:80/api/helse",
"REACT_APP_GRAPHQL_URL": "http://localhost:5000",
"REACT_APP_PROXY_URL": "https://proxy.test.advoca.localhost:4430",
"SESSIONNAME": "Console",
"SystemDrive": "C:",
"SystemRoot": "C:\\WINDOWS",
"TEMP": "C:\\Users\\User\\AppData\\Local\\Temp",
"TMP": "C:\\Users\\User\\AppData\\Local\\Temp",
"TSCONFIG": "C:\\Sites\\adopus-portal\\tsconfig.json",
"TSLINT": "",
"TSLINTAUTOFIX": "false",
"TYPESCRIPT_PATH": "C:\\Sites\\adopus-portal\\node_modules\\typescript\\lib\\typescript.js",
"USERDOMAIN": "IGORPC",
"USERDOMAIN_ROAMINGPROFILE": "IGORPC",
"USERNAME": "User",
"USERPROFILE": "C:\\Users\\User",
"USE_INCREMENTAL_API": "true",
"VBOX_MSI_INSTALL_PATH": "C:\\Program Files\\Oracle\\VirtualBox\\",
"VUE": "{\"compiler\":\"vue-template-compiler\",\"enabled\":false}",
"WATCH": "",
"windir": "C:\\WINDOWS",
"WORK_DIVISION": "1",
"YARN_WRAP_OUTPUT": "false"
},
"sharedObjects": [
"C:\\Program Files\\nodejs\\node.exe",
"C:\\WINDOWS\\SYSTEM32\\ntdll.dll",
"C:\\WINDOWS\\System32\\KERNEL32.DLL",
"C:\\WINDOWS\\System32\\KERNELBASE.dll",
"C:\\WINDOWS\\System32\\WS2_32.dll",
"C:\\WINDOWS\\System32\\RPCRT4.dll",
"C:\\WINDOWS\\SYSTEM32\\dbghelp.dll",
"C:\\WINDOWS\\System32\\ADVAPI32.dll",
"C:\\WINDOWS\\System32\\ucrtbase.dll",
"C:\\WINDOWS\\System32\\msvcrt.dll",
"C:\\WINDOWS\\System32\\sechost.dll",
"C:\\WINDOWS\\System32\\USER32.dll",
"C:\\WINDOWS\\System32\\win32u.dll",
"C:\\WINDOWS\\System32\\GDI32.dll",
"C:\\WINDOWS\\System32\\gdi32full.dll",
"C:\\WINDOWS\\System32\\msvcp_win.dll",
"C:\\WINDOWS\\System32\\PSAPI.DLL",
"C:\\WINDOWS\\System32\\CRYPT32.dll",
"C:\\WINDOWS\\System32\\MSASN1.dll",
"C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL",
"C:\\WINDOWS\\SYSTEM32\\USERENV.dll",
"C:\\WINDOWS\\System32\\profapi.dll",
"C:\\WINDOWS\\SYSTEM32\\bcrypt.dll",
"C:\\WINDOWS\\SYSTEM32\\WINMM.dll",
"C:\\WINDOWS\\SYSTEM32\\winmmbase.dll",
"C:\\WINDOWS\\System32\\cfgmgr32.dll",
"C:\\WINDOWS\\System32\\IMM32.DLL",
"C:\\WINDOWS\\System32\\powrprof.dll",
"C:\\WINDOWS\\SYSTEM32\\CRYPTBASE.DLL",
"C:\\WINDOWS\\System32\\bcryptPrimitives.dll",
"C:\\WINDOWS\\system32\\uxtheme.dll",
"C:\\WINDOWS\\System32\\combase.dll",
"C:\\WINDOWS\\system32\\mswsock.dll",
"C:\\WINDOWS\\System32\\kernel.appcore.dll",
"C:\\WINDOWS\\System32\\NSI.dll",
"C:\\WINDOWS\\SYSTEM32\\dhcpcsvc6.DLL",
"C:\\WINDOWS\\SYSTEM32\\dhcpcsvc.DLL",
"C:\\WINDOWS\\system32\\napinsp.dll",
"C:\\WINDOWS\\system32\\pnrpnsp.dll",
"C:\\WINDOWS\\system32\\NLAapi.dll",
"C:\\WINDOWS\\SYSTEM32\\DNSAPI.dll",
"C:\\WINDOWS\\System32\\winrnr.dll",
"C:\\WINDOWS\\System32\\wshbth.dll"
]
}
I found out that problem i related "fork-ts-checker-webpack-plugin" in combination with mobx-state-tree.
Cause?: Have no idea.
Solution?: I refactored code and removed those two methods which were a problem.
It still takes around 300 to compile. but it compiles. )
@Relaxe111, I am having the same problem since 3.3.0. Version 3.2.0 works ok. I can't believe they just ignore all the bug reports on this issue for the last 3 months. So the tickets will be automatically closed by bots. Version 3.2.0 build is very slow. But 3.3.x and above stopped working. We are looking at alternatives.
I also got the error with new project npx create-react-app and installing plotly
adding the memory flag to start scripts fixing the issue
"start": "react-scripts --max_old_space_size=4096 start",
my package.json
{
"name": "plot.ly",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"plotly.js": "^1.52.3",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-plotly.js": "^2.4.0",
"react-scripts": "3.4.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
@buncismamen you are my hero. Had the same issue with react-plotly.js
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
I still have same problem but this time on build. I have removed type checking with help of react-app-rewire. I added in config-overrides.js following code:
const { paths: rewiredPaths } = require('react-app-rewired');
const { scriptVersion } = rewiredPaths;
const paths = require(${scriptVersion}/config/paths
);
module.exports = {
webpack: (config) => {
// Disable eslint
//config.module.rules.splice(1, 1);
// Disable type checking
paths.appTsConfig = undefined;
return config;
},
};
and at yarn start it works as usual but when i try to use yarn build after 4000 sec i get Allocation failed - JavaScript heap out of memory.
This happened when i refactored more of my js files to ts.
what more info i can share to help to locate the problem?
here is my report file :
{
"header": {
"reportVersion": 2,
"event": "Allocation failed - JavaScript heap out of memory",
"trigger": "FatalError",
"filename": "report.20200506.212041.23244.0.001.json",
"dumpEventTime": "2020-05-06T21:20:41Z",
"dumpEventTimeStamp": "1588792841918",
"processId": 23244,
"threadId": null,
"cwd": "/home/sites/epr-portal",
"commandLine": [
"/usr/bin/node",
"--max-old-space-size=2048",
"/home/sites/epr-portal/node_modules/fork-ts-checker-webpack-plugin/lib/service.js"
],
"nodejsVersion": "v12.16.3",
"glibcVersionRuntime": "2.27",
"glibcVersionCompiler": "2.17",
"wordSize": 64,
"arch": "x64",
"platform": "linux",
"componentVersions": {
"node": "12.16.3",
"v8": "7.8.279.23-node.35",
"uv": "1.34.2",
"zlib": "1.2.11",
"brotli": "1.0.7",
"ares": "1.16.0",
"modules": "72",
"nghttp2": "1.40.0",
"napi": "5",
"llhttp": "2.0.4",
"http_parser": "2.9.3",
"openssl": "1.1.1g",
"cldr": "36.0",
"icu": "65.1",
"tz": "2019c",
"unicode": "12.1"
},
"release": {
"name": "node",
"lts": "Erbium",
"headersUrl": "https://nodejs.org/download/release/v12.16.3/node-v12.16.3-headers.tar.gz",
"sourceUrl": "https://nodejs.org/download/release/v12.16.3/node-v12.16.3.tar.gz"
},
"osName": "Linux",
"osRelease": "5.3.0-51-generic",
"osVersion": "#44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020",
"osMachine": "x86_64",
"cpus": [
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2739,
"user": 43902100,
"nice": 12300,
"sys": 2131800,
"idle": 138447100,
"irq": 0
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2642,
"user": 47961700,
"nice": 16100,
"sys": 1998400,
"idle": 134635200,
"irq": 0
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2375,
"user": 45371300,
"nice": 14600,
"sys": 3303700,
"idle": 135360100,
"irq": 0
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2696,
"user": 48116200,
"nice": 15700,
"sys": 2005500,
"idle": 134528700,
"irq": 0
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2485,
"user": 46472600,
"nice": 24400,
"sys": 2018700,
"idle": 136206100,
"irq": 0
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2135,
"user": 44507700,
"nice": 15900,
"sys": 2106000,
"idle": 138060100,
"irq": 0
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2694,
"user": 45614800,
"nice": 15900,
"sys": 2077900,
"idle": 136992000,
"irq": 0
},
{
"model": "Intel(R) Core(TM) i7-5700HQ CPU @ 2.70GHz",
"speed": 2681,
"user": 44405700,
"nice": 17100,
"sys": 2131600,
"idle": 137917000,
"irq": 0
}
],
"networkInterfaces": [
{
"name": "lo",
"internal": true,
"mac": "00:00:00:00:00:00",
"address": "127.0.0.1",
"netmask": "255.0.0.0",
"family": "IPv4"
},
{
"name": "wlp6s0",
"internal": false,
"mac": "34:02:86:af:6a:31",
"address": "192.168.1.10",
"netmask": "255.255.255.0",
"family": "IPv4"
},
{
"name": "br-608ff8291915",
"internal": false,
"mac": "02:42:03:ea:a1:05",
"address": "172.25.0.1",
"netmask": "255.255.0.0",
"family": "IPv4"
},
{
"name": "br-659a2fc1d4f1",
"internal": false,
"mac": "02:42:b9:64:25:14",
"address": "172.20.0.1",
"netmask": "255.255.0.0",
"family": "IPv4"
},
{
"name": "br-375861d6e5ca",
"internal": false,
"mac": "02:42:71:25:61:99",
"address": "172.21.0.1",
"netmask": "255.255.0.0",
"family": "IPv4"
},
{
"name": "br-5d1b38f802ff",
"internal": false,
"mac": "02:42:d2:55:76:a5",
"address": "172.23.0.1",
"netmask": "255.255.0.0",
"family": "IPv4"
},
{
"name": "lo",
"internal": true,
"mac": "00:00:00:00:00:00",
"address": "::1",
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
"family": "IPv6",
"scopeid": 0
},
{
"name": "wlp6s0",
"internal": false,
"mac": "34:02:86:af:6a:31",
"address": "fe80::930d:8f0b:9a39:ba86",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 3
},
{
"name": "br-608ff8291915",
"internal": false,
"mac": "02:42:03:ea:a1:05",
"address": "fe80::42:3ff:feea:a105",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 4
},
{
"name": "br-659a2fc1d4f1",
"internal": false,
"mac": "02:42:b9:64:25:14",
"address": "fe80::42:b9ff:fe64:2514",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 5
},
{
"name": "br-375861d6e5ca",
"internal": false,
"mac": "02:42:71:25:61:99",
"address": "fe80::42:71ff:fe25:6199",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 10
},
{
"name": "br-5d1b38f802ff",
"internal": false,
"mac": "02:42:d2:55:76:a5",
"address": "fe80::42:d2ff:fe55:76a5",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 11
},
{
"name": "veth5d28455",
"internal": false,
"mac": "86:c3:df:a0:e5:f7",
"address": "fe80::84c3:dfff:fea0:e5f7",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 13
},
{
"name": "veth4ff6e1d",
"internal": false,
"mac": "a6:00:23:36:d1:20",
"address": "fe80::a400:23ff:fe36:d120",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 15
},
{
"name": "veth744caf2",
"internal": false,
"mac": "f6:85:f6:78:db:3f",
"address": "fe80::f485:f6ff:fe78:db3f",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 17
},
{
"name": "vethd97fe45",
"internal": false,
"mac": "2e:18:da:e6:83:ff",
"address": "fe80::2c18:daff:fee6:83ff",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 19
},
{
"name": "vethf2e6c49",
"internal": false,
"mac": "42:37:32:f4:3c:e7",
"address": "fe80::4037:32ff:fef4:3ce7",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 21
},
{
"name": "veth695ad8b",
"internal": false,
"mac": "02:4e:1d:3b:ef:41",
"address": "fe80::4e:1dff:fe3b:ef41",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 23
},
{
"name": "veth06446d8",
"internal": false,
"mac": "56:22:ac:51:8c:43",
"address": "fe80::5422:acff:fe51:8c43",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 25
},
{
"name": "veth8e75dec",
"internal": false,
"mac": "12:c7:1e:81:e4:7c",
"address": "fe80::10c7:1eff:fe81:e47c",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 27
},
{
"name": "vethab9af1a",
"internal": false,
"mac": "7e:21:7b:1b:1c:a2",
"address": "fe80::7c21:7bff:fe1b:1ca2",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 29
},
{
"name": "veth31a71da",
"internal": false,
"mac": "56:67:d6:96:45:24",
"address": "fe80::5467:d6ff:fe96:4524",
"netmask": "ffff:ffff:ffff:ffff::",
"family": "IPv6",
"scopeid": 31
}
],
"host": "igor-X5"
},
"javascriptStack": {
"message": "No stack.",
"stack": [
"Unavailable."
]
},
"nativeStack": [
{
"pc": "0x0000000000b46955",
"symbol": "report::TriggerNodeReport(v8::Isolate*, node::Environment*, char const*, char const*, std::string const&, v8::Local<v8::String>) [/usr/bin/node]"
},
{
"pc": "0x0000000000a09c8f",
"symbol": "node::OnFatalError(char const*, char const*) [/usr/bin/node]"
},
{
"pc": "0x0000000000b7d71e",
"symbol": "v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]"
},
{
"pc": "0x0000000000b7da99",
"symbol": "v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]"
},
{
"pc": "0x0000000000d2a1f5",
"symbol": " [/usr/bin/node]"
},
{
"pc": "0x0000000000d2a886",
"symbol": "v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/bin/node]"
},
{
"pc": "0x0000000000d37105",
"symbol": "v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/bin/node]"
},
{
"pc": "0x0000000000d37fb5",
"symbol": "v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]"
},
{
"pc": "0x0000000000d3aa6c",
"symbol": "v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]"
},
{
"pc": "0x0000000000d0163b",
"symbol": "v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]"
},
{
"pc": "0x000000000104300e",
"symbol": "v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]"
},
{
"pc": "0x00000000013c5b79",
"symbol": " [/usr/bin/node]"
}
],
"javascriptHeap": {
"totalMemory": 2155491328,
"totalCommittedMemory": 2151766504,
"usedMemory": 2142307720,
"availableMemory": 46515352,
"memoryLimit": 2197815296,
"heapSpaces": {
"read_only_space": {
"memorySize": 262144,
"committedMemory": 33088,
"capacity": 32808,
"used": 32808,
"available": 0
},
"new_space": {
"memorySize": 4194304,
"committedMemory": 1244112,
"capacity": 2094912,
"used": 224752,
"available": 1870160
},
"old_space": {
"memorySize": 2110136320,
"committedMemory": 2110048752,
"capacity": 2102383096,
"used": 2102156784,
"available": 226312
},
"code_space": {
"memorySize": 3051520,
"committedMemory": 2841984,
"capacity": 2530848,
"used": 2530848,
"available": 0
},
"map_space": {
"memorySize": 1052672,
"committedMemory": 804200,
"capacity": 688960,
"used": 688960,
"available": 0
},
"large_object_space": {
"memorySize": 36745216,
"committedMemory": 36745216,
"capacity": 36670784,
"used": 36670784,
"available": 0
},
"code_large_object_space": {
"memorySize": 49152,
"committedMemory": 49152,
"capacity": 2784,
"used": 2784,
"available": 0
},
"new_large_object_space": {
"memorySize": 0,
"committedMemory": 0,
"capacity": 2094912,
"used": 0,
"available": 2094912
}
}
},
"resourceUsage": {
"userCpuSeconds": 4582.74,
"kernelCpuSeconds": 48.7281,
"cpuConsumptionPercent": 118.695,
"maxRss": 2251124736,
"pageFaults": {
"IORequired": 10,
"IONotRequired": 1187578
},
"fsActivity": {
"reads": 1920,
"writes": 24
}
},
"uvthreadResourceUsage": {
"userCpuSeconds": 3845.17,
"kernelCpuSeconds": 15.9349,
"cpuConsumptionPercent": 98.9519,
"fsActivity": {
"reads": 1920,
"writes": 24
}
},
"libuv": [
],
"workers": [
],
"environmentVariables": {
"GJS_DEBUG_TOPICS": "JS ERROR;JS LOG",
"LESSOPEN": "| /usr/bin/lesspipe %s",
"npm_package_dependencies_react_outside_click_handler": "^1.3.0",
"npm_package_dependencies_react_apollo": "^3.1.3",
"npm_package_dependencies_regexpp": "^3.0.0",
"npm_package_dependencies__material_ui_icons": "^4.5.1",
"USER": "igor",
"LC_TIME": "en_US.UTF-8",
"npm_package_dependencies__types_jest": "^24.0.0",
"npm_config_version_commit_hooks": "true",
"npm_config_user_agent": "yarn/1.22.4 npm/? node/v12.16.3 linux x64",
"TEXTDOMAIN": "im-config",
"XDG_SEAT": "seat0",
"npm_package_dependencies__types_uuid": "^3.4.7",
"npm_package_dependencies__trendmicro_react_sidenav": "^0.5.0",
"npm_package_dependencies__material_ui_core": "^4.8.3",
"npm_config_bin_links": "true",
"SSH_AGENT_PID": "4796",
"XDG_SESSION_TYPE": "x11",
"npm_node_execpath": "/usr/bin/node",
"npm_package_dependencies_mobx_react_lite": "^1.5.2",
"npm_package_dependencies__types_lodash": "^4.14.149",
"npm_config_init_version": "1.0.0",
"SHLVL": "1",
"npm_package_dependencies_react_hook_form": "^4.8.2",
"QT4_IM_MODULE": "xim",
"HOME": "/home/igor",
"OLDPWD": "/home/igor",
"npm_package_browserslist_production_0": ">0.2%",
"npm_package_dependencies__ant_design_icons": "^4.0.6",
"DESKTOP_SESSION": "ubuntu",
"npm_package_browserslist_production_1": "not dead",
"npm_package_browserslist_production_2": "not op_mini all",
"npm_config_init_license": "MIT",
"GNOME_SHELL_SESSION_MODE": "ubuntu",
"GTK_MODULES": "gail:atk-bridge",
"YARN_WRAP_OUTPUT": "false",
"npm_package_dependencies_use_immer": "^0.3.5",
"npm_config_version_tag_prefix": "v",
"LC_MONETARY": "en_US.UTF-8",
"npm_package_dependencies_immer": "^5.3.2",
"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
"npm_package_dependencies_moment": "^2.24.0",
"COLORTERM": "truecolor",
"npm_package_description": "- [Updating to New Releases](#updating-to-new-releases) - [Sending Feedback](#sending-feedback) - [Folder Structure](#folder-structure) - [Available Scripts](#available-scripts) - [npm start](#npm-start) - [npm test](#npm-test) - [npm run build](#npm-run-build) - [npm run eject](#npm-run-eject) - [Supported Browsers](#supported-browsers) - [Supported Language Features](#supported-language-features) - [Syntax Highlighting in the Editor](#syntax-highlighting-in-the-editor) - [Displaying Lint Output in the Editor](#displaying-lint-output-in-the-editor) - [Debugging in the Editor](#debugging-in-the-editor) - [Formatting Code Automatically](#formatting-code-automatically) - [Changing the Page `<title>`](#changing-the-page-title) - [Installing a Dependency](#installing-a-dependency) - [Importing a Component](#importing-a-component) - [Code Splitting](#code-splitting) - [Adding a Stylesheet](#adding-a-stylesheet) - [Adding a CSS Modules Stylesheet](#adding-a-css-modules-stylesheet) - [Adding a Sass Stylesheet](#adding-a-sass-stylesheet) - [Post-Processing CSS](#post-processing-css) - [Adding Images, Fonts, and Files](#adding-images-fonts-and-files) - [Adding SVGs](#adding-svgs) - [Using the `public` Folder](#using-the-public-folder) - [Changing the HTML](#changing-the-html) - [Adding Assets Outside of the Module System](#adding-assets-outside-of-the-module-system) - [When to Use the `public` Folder](#when-to-use-the-public-folder) - [Using Global Variables](#using-global-variables) - [Adding Bootstrap](#adding-bootstrap) - [Using a Custom Theme](#using-a-custom-theme) - [Adding Flow](#adding-flow) - [Adding Relay](#adding-relay) - [Adding a Router](#adding-a-router) - [Adding Custom Environment Variables](#adding-custom-environment-variables) - [Referencing Environment Variables in the HTML](#referencing-environment-variables-in-the-html) - [Adding Temporary Environment Variables In Your Shell](#adding-temporary-environment-variables-in-your-shell) - [Adding Development Environment Variables In `.env`](#adding-development-environment-variables-in-env) - [Can I Use Decorators?](#can-i-use-decorators) - [Fetching Data with AJAX Requests](#fetching-data-with-ajax-requests) - [Integrating with an API Backend](#integrating-with-an-api-backend) - [Node](#node) - [Ruby on Rails](#ruby-on-rails) - [Proxying API Requests in Development](#proxying-api-requests-in-development) - [\"Invalid Host Header\" Errors After Configuring Proxy](#invalid-host-header-errors-after-configuring-proxy) - [Configuring the Proxy Manually](#configuring-the-proxy-manually) - [Using HTTPS in Development](#using-https-in-development) - [Generating Dynamic `<meta>` Tags on the Server](#generating-dynamic-meta-tags-on-the-server) - [Pre-Rendering into Static HTML Files](#pre-rendering-into-static-html-files) - [Injecting Data from the Server into the Page](#injecting-data-from-the-server-into-the-page) - [Running Tests](#running-tests) - [Filename Conventions](#filename-conventions) - [Command Line Interface](#command-line-interface) - [Version Control Integration](#version-control-integration) - [Writing Tests](#writing-tests) - [Testing Components](#testing-components) - [Using Third Party Assertion Libraries](#using-third-party-assertion-libraries) - [Initializing Test Environment](#initializing-test-environment) - [Focusing and Excluding Tests](#focusing-and-excluding-tests) - [Coverage Reporting](#coverage-reporting) - [Continuous Integration](#continuous-integration) - [Disabling jsdom](#disabling-jsdom) - [Snapshot Testing](#snapshot-testing) - [Editor Integration](#editor-integration) - [Debugging Tests](#debugging-tests) - [Debugging Tests in Chrome](#debugging-tests-in-chrome) - [Debugging Tests in Visual Studio Code](#debugging-tests-in-visual-studio-code) - [Developing Components in Isolation](#developing-components-in-isolation) - [Getting Started with Storybook](#getting-started-with-storybook) - [Getting Started with Styleguidist](#getting-started-with-styleguidist) - [Publishing Components to npm](#publishing-components-to-npm) - [Making a Progressive Web App](#making-a-progressive-web-app) - [Why Opt-in?](#why-opt-in) - [Offline-First Considerations](#offline-first-considerations) - [Progressive Web App Metadata](#progressive-web-app-metadata) - [Analyzing the Bundle Size](#analyzing-the-bundle-size) - [Deployment](#deployment) - [Static Server](#static-server) - [Other Solutions](#other-solutions) - [Serving Apps with Client-Side Routing](#serving-apps-with-client-side-routing) - [Building for Relative Paths](#building-for-relative-paths) - [Customizing Environment Variables for Arbitrary Build Environments](#customizing-environment-variables-for-arbitrary-build-environments) - [Azure](#azure) - [Firebase](#firebase) - [GitHub Pages](#github-pages) - [Heroku](#heroku) - [Netlify](#netlify) - [Now](#now) - [S3 and CloudFront](#s3-and-cloudfront) - [Surge](#surge) - [Advanced Configuration](#advanced-configuration) - [Troubleshooting](#troubleshooting-1) - [`npm start` doesn’t detect changes](#npm-start-doesnt-detect-changes) - [`npm test` hangs or crashes on macOS Sierra](#npm-test-hangs-or-crashes-on-macos-sierra) - [`npm run build` exits too early](#npm-run-build-exits-too-early) - [`npm run build` fails on Heroku](#npm-run-build-fails-on-heroku) - [`npm run build` fails to minify](#npm-run-build-fails-to-minify) - [Moment.js locales are missing](#momentjs-locales-are-missing) - [Alternatives to Ejecting](#alternatives-to-ejecting) - [Something Missing?](#something-missing)",
"npm_package_dependencies_react_scripts": "3.4.1",
"npm_package_dependencies_react_router_dom": "^5.1.2",
"npm_package_dependencies_apollo_cache": "^1.3.4",
"npm_package_dependencies_antd": "^3.26.8",
"NVM_DIR": "/home/igor/.nvm",
"npm_package_readmeFilename": "README.md",
"npm_package_dependencies_rc_datepicker": "^5.0.15",
"npm_package_dependencies__types_react": "^16.9.0",
"npm_package_dependencies__testing_library_react": "^9.3.2",
"IM_CONFIG_PHASE": "2",
"LOGNAME": "igor",
"GTK_IM_MODULE": "ibus",
"_": "/usr/bin/yarn",
"npm_package_dependencies_react_app_rewired": "^2.1.6",
"npm_package_private": "true",
"npm_config_registry": "https://registry.yarnpkg.com",
"USERNAME": "igor",
"XDG_SESSION_ID": "3",
"TERM": "xterm-256color",
"GNOME_DESKTOP_SESSION_ID": "this-is-deprecated",
"npm_package_scripts_start": "react-app-rewired start",
"npm_package_dependencies_all": "^0.0.0",
"npm_config_ignore_scripts": "",
"GTK2_MODULES": "overlay-scrollbar",
"WINDOWPATH": "2",
"npm_package_browserslist_development_0": "last 1 chrome version",
"npm_package_dependencies_axios": "^0.19.1",
"npm_package_dependencies_apollo_link": "^1.2.13",
"PATH": "/tmp/yarn--1588788938641-0.12395477144568767:/home/sites/epr-portal/node_modules/.bin:/home/igor/.config/yarn/link/node_modules/.bin:/home/igor/.yarn/bin:/usr/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/lib/node_modules/npm/bin/node-gyp-bin:/usr/bin/node_modules/npm/bin/node-gyp-bin:/home/igor/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/igor/.dotnet/tools",
"NODE": "/usr/bin/node",
"PAPERSIZE": "letter",
"SESSION_MANAGER": "local/igor-X5:@/tmp/.ICE-unix/4711,unix/igor-X5:/tmp/.ICE-unix/4711",
"npm_package_browserslist_development_1": "last 1 firefox version",
"npm_package_name": "adopus-portal-typescript",
"XDG_MENU_PREFIX": "gnome-",
"S_COLORS": "auto",
"GNOME_TERMINAL_SCREEN": "/org/gnome/Terminal/screen/259a5e41_b697_43c3_9733_fe8766da43bd",
"LC_ADDRESS": "en_US.UTF-8",
"XDG_RUNTIME_DIR": "/run/user/1000",
"npm_package_devDependencies_flow_bin": "^0.122.0",
"npm_package_browserslist_development_2": "last 1 safari version",
"DISPLAY": ":1",
"npm_package_scripts_eject": "react-scripts eject",
"LANG": "en_US.UTF-8",
"XDG_CURRENT_DESKTOP": "ubuntu:GNOME",
"LC_TELEPHONE": "en_US.UTF-8",
"npm_package_dependencies_react_dom": "^16.12.0",
"npm_package_dependencies_mobx_state_tree": "^3.15.0",
"npm_package_dependencies_apollo_boost": "^0.4.7",
"LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",
"XDG_SESSION_DESKTOP": "ubuntu",
"XMODIFIERS": "@im=ibus",
"GNOME_TERMINAL_SERVICE": ":1.93",
"XAUTHORITY": "/run/user/1000/gdm/Xauthority",
"npm_lifecycle_script": "react-app-rewired build",
"npm_package_dependencies_use_react_router": "^1.0.7",
"npm_package_dependencies_sweetalert2": "^9.5.4",
"npm_package_dependencies__types_node": "^13.1.6",
"SSH_AUTH_SOCK": "/run/user/1000/keyring/ssh",
"npm_package_scripts_test": "react-app-rewired test",
"npm_package_dependencies__types_react_router_dom": "^5.1.3",
"npm_config_version_git_message": "v%s",
"LC_NAME": "en_US.UTF-8",
"SHELL": "/bin/bash",
"npm_lifecycle_event": "build",
"npm_package_dependencies_mobx": "^5.15.2",
"npm_package_dependencies_js_sha256": "^0.9.0",
"npm_package_dependencies__testing_library_jest_dom": "^4.2.4",
"npm_package_version": "0.1.0",
"QT_ACCESSIBILITY": "1",
"GDMSESSION": "ubuntu",
"npm_config_argv": "{\"remain\":[],\"cooked\":[\"run\",\"build\"],\"original\":[\"build\"]}",
"npm_package_scripts_build": "react-app-rewired build",
"npm_package_dependencies_uuid": "^3.3.3",
"npm_package_dependencies_graphql": "^14.5.8",
"npm_package_dependencies__testing_library_user_event": "^8.0.3",
"LESSCLOSE": "/usr/bin/lesspipe %s %s",
"npm_package_dependencies_lodash": "^4.17.15",
"LC_MEASUREMENT": "en_US.UTF-8",
"npm_config_version_git_tag": "true",
"npm_config_version_git_sign": "",
"TEXTDOMAINDIR": "/usr/share/locale/",
"GJS_DEBUG_OUTPUT": "stderr",
"GPG_AGENT_INFO": "/run/user/1000/gnupg/S.gpg-agent:0:1",
"LC_IDENTIFICATION": "en_US.UTF-8",
"npm_package_dependencies_react_reveal": "^1.2.2",
"npm_package_dependencies_react_bootstrap": "^1.0.0-beta.16",
"npm_config_strict_ssl": "true",
"XDG_VTNR": "2",
"QT_IM_MODULE": "ibus",
"npm_package_dependencies_react_select": "^3.0.8",
"npm_package_dependencies_apollo_utilities": "^1.3.3",
"PWD": "/home/sites/epr-portal",
"npm_execpath": "/usr/share/yarn/bin/yarn.js",
"CLUTTER_IM_MODULE": "xim",
"NVM_CD_FLAGS": "",
"XDG_DATA_DIRS": "/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",
"XDG_CONFIG_DIRS": "/etc/xdg/xdg-ubuntu:/etc/xdg",
"npm_package_dependencies_apollo_client": "^2.6.8",
"LC_NUMERIC": "en_US.UTF-8",
"npm_config_save_prefix": "^",
"npm_config_ignore_optional": "",
"LC_PAPER": "en_US.UTF-8",
"VTE_VERSION": "5202",
"npm_package_dependencies_typescript": "^3.8.3",
"INIT_CWD": "/home/sites/epr-portal",
"NVM_RC_VERSION": "",
"npm_package_eslintConfig_extends": "react-app",
"npm_package_dependencies_react": "^16.12.0",
"npm_package_dependencies__types_react_dom": "^16.9.0",
"NODE_ENV": "production",
"BROWSER": "none",
"GENERATE_SOURCEMAP": "false",
"REACT_APP_ADOPUS_APP_GRAPHQL_URL": "http://10.111.1.20/GraphQLAPITest",
"REACT_APP_ADVITAM_APP_GRAPHQL_URL": "http://10.111.1.20:81/AdVitamGraphQLAPITest/graphql",
"REACT_APP_PROXY_URL": "https://f5ff5ec7.ngrok.io",
"REACT_APP_CHAT_URL": "http://192.168.250.224:80/api/helse",
"REACT_APP_ACTIVE_DATA_SERVICE": "http://localhost:7001/v1/graphql",
"REACT_APP_AUTH_SERVICE": "http://localhost:7000/v1/graphql",
"REACT_APP_VIDEO_FILE_SERVICE": "http://localhost:8001/uploadFiles",
"REACT_APP_ADVOCA_ACCESS_URL": "https://test.advoca.localhost",
"REACT_APP_GENERATE_SOURCEMAP": "true",
"NODE_PATH": "",
"BABEL_ENV": "production",
"TYPESCRIPT_PATH": "/home/sites/epr-portal/node_modules/typescript/lib/typescript.js",
"TSCONFIG": "/home/sites/epr-portal/tsconfig.json",
"COMPILER_OPTIONS": "{}",
"TSLINT": "",
"CONTEXT": "/home/sites/epr-portal",
"TSLINTAUTOFIX": "false",
"ESLINT": "false",
"ESLINT_OPTIONS": "{}",
"WATCH": "",
"WORK_DIVISION": "1",
"MEMORY_LIMIT": "2048",
"CHECK_SYNTACTIC_ERRORS": "true",
"USE_INCREMENTAL_API": "true",
"VUE": "{\"compiler\":\"vue-template-compiler\",\"enabled\":false}"
},
"userLimits": {
"core_file_size_blocks": {
"soft": 0,
"hard": "unlimited"
},
"data_seg_size_kbytes": {
"soft": "unlimited",
"hard": "unlimited"
},
"file_size_blocks": {
"soft": "unlimited",
"hard": "unlimited"
},
"max_locked_memory_bytes": {
"soft": 16777216,
"hard": 16777216
},
"max_memory_size_kbytes": {
"soft": "unlimited",
"hard": "unlimited"
},
"open_files": {
"soft": 4096,
"hard": 4096
},
"stack_size_bytes": {
"soft": 8388608,
"hard": "unlimited"
},
"cpu_time_seconds": {
"soft": "unlimited",
"hard": "unlimited"
},
"max_user_processes": {
"soft": 63667,
"hard": 63667
},
"virtual_memory_kbytes": {
"soft": "unlimited",
"hard": "unlimited"
}
},
"sharedObjects": [
"linux-vdso.so.1",
"/lib/x86_64-linux-gnu/libdl.so.2",
"/usr/lib/x86_64-linux-gnu/libstdc++.so.6",
"/lib/x86_64-linux-gnu/libm.so.6",
"/lib/x86_64-linux-gnu/libgcc_s.so.1",
"/lib/x86_64-linux-gnu/libpthread.so.0",
"/lib/x86_64-linux-gnu/libc.so.6",
"/lib64/ld-linux-x86-64.so.2"
]
}
Have the same problem, my build is failed because of old version of fork-ts-checker-webpack-plugin
. After forcing use the latest version (4.1.3) everything compiles successfully. Before I tried to play with memory (increase it for the plugin) - but it didn't help: it eat all the given memory (even 8g). So it looks there is some bug in the version, which is current in CRA.
Ive tryed with v 4.1.3 did not help. It looks like it is an unlikely combination of the typescript cra and mobx state tree. I think issue may be caused because of combination of root ts files with js child files in the mst. Now I converst all mst models to ts hopefully this will help.
@Relaxe111 how did you fixed the version to 4.1.3?
I didn't yet. I just believe that converting all mst files to ts will help. I'm in the process of conversion. I will inform here about results
@Relaxe111 how did it go??
Hello I've just finished to convert all files and found out that source of evil in my code were union interface of 10 inherited interfaces from mst models.
I have a model basequestion an from base question I made with combine model from mst other models like radiobuttons textshort, textlong ... , After I created that evil IUnionQuestion and everywhere in my models and tsx files I've refered to IUnionQuestion. After I removed from my app this interface and refered in all parts to IBaseQuestion interface code compiled. Also I did a small trick. When I need to convert IBaseQuestion and inject as f example as ICheckBoxes I use a short function
Function isCheckBoxes(question: IBaseQuestion) is ICeckBoxes {
return question ===QuestionTypeEnum.CheckBoxes
}
And where I need to convert to a concrete type I use :
If(isCheckBoxes(question)){
<CheckBoxes question={question}/>
}
Firstly
When I get rid of IUnionQuestion my project compiled in 420seconds.
When I added second trick with is ISomeType
compilation reduced to 172 seconds which is amazing.
I am experiencing this issue also and it seems to strike randomly, but then mercilessly and endlessly once triggered.
I have experienced on several machines (MacOS and Windows), with several node versions, in several terminals... i.e. it is something within my current React build. Unfortunately the build is somewhat out of date and updating portions is a much larger job than what can be currently committed to.
Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Machine experiences an ever increasing memory usage shortly before cutting out when it kills this process during the build.
GENERATE_SOURCEMAP=false
This does absolutely nothing for my build unfortunately.
react-scripts --max_old_space_size=4096 start
Specifying the memory allowance here also does nothing for this.
React scripts version: ^1.1.5
_(as noted updating is simply not going to be possible right now)_
I'm really getting nowhere with this currently if anyone has any other ideas.
Not sure if this helps anyone at all, but since this is not solved, I thought, I might as well add my insight. I have seen this error today and when I removed a ref from one of my 3rd party components, it went away. So maybe check your refs and see if any of those do not work correctly / loop in some kind of way. Sorry if it doesn't help :/
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Please, keep this alive. HOPEFULLY, somebody can fix it.
Please, keep this alive. HOPEFULLY, somebody can fix it.
Indeed
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Someone ordered some recent activity.
I am still having this issue, Any hellp ? Thanks
halp
anyupdate on this? got issue when i run test
I have this issue too. I have it on yarn start
in project with TypeScript.
Increasing memory for Node didn't help me.
"react-scripts": "3.4.1"
Most helpful comment
I also got the error with new project npx create-react-app and installing plotly
adding the memory flag to start scripts fixing the issue
my package.json