Hey Friends. I am just stuck with a problem. Looking for your help. Basically whenever I try to Publish app or working on the app I suddenly start getting this error “ineffective mark-compacts near heap limit allocation failed - javascript heap out of memory react native”.
I am on Windows 7 with 12GB RAM. Not sure how to increase Heap Memory? I tried this in my package.json but still same problem. Looking for your help. Thank you
{
"name": "empty-project-template",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts": {
"start": "node --max_old_space_size=8192 && expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"react-devtools": "react-devtools"
},
"dependencies": {
"@ptomasroos/react-native-multi-slider": "^1.0.0",
"accordion-collapse-react-native": "^0.1.6",
"currency-formatter": "^1.5.3",
"expo": "^32.0.0",
"lodash": "^4.17.11",
"moment": "^2.23.0",
"native-base": "^2.8.1",
"prop-type": "^0.0.1",
"prop-types": "^15.6.2",
"react": "16.3.1",
"react-devtools": "^3.4.2",
"react-image-picker": "^1.1.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"react-native-checkbox-group": "^1.0.3",
"react-native-country-picker-modal": "^0.6.2",
"react-native-elements": "^0.19.1",
"react-native-flexi-radio-button": "^0.2.2",
"react-native-htmlview": "^0.13.0",
"react-native-masked-text": "^1.12.2",
"react-native-modal": "^6.5.0",
"react-native-multi-select": "^0.1.1",
"react-native-phone-input": "^0.2.1",
"react-native-popover-view": "^1.0.9",
"react-native-progress-circle": "^2.0.1",
"react-native-search-header": "^0.3.1",
"react-native-searchable-dropdown": "^1.0.6",
"react-native-sectioned-multi-select": "^0.6.5",
"react-native-select-multiple": "^1.2.0",
"react-native-share": "^1.1.3",
"react-native-simple-radio-button": "^2.7.3",
"react-native-swiper": "^1.5.14",
"react-native-tag-autocomplete": "^1.0.21",
"react-native-vector-icons": "^6.1.0",
"react-navigation": "^2.18.1",
"react-navigation-transitions": "^1.0.10",
"react-redux": "^5.0.7",
"redux-promise-middleware": "^5.1.1",
"redux-saga": "^0.16.2",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"schedule": "^0.4.0"
}
}