Vue Build getting killed

Hello, would like to know the reason why my build is getting killed, My first assumption was memory limit but when I tried to profile my memory usage using webpack-bundle-analyzer this is what I got: Memory usage during build: 2751356928 bytes = 2624 MB (approximately)

I also tried to increase the memory limit thru environment variables --max_old_space_size but no luck

Another thing I tried this:

CI= npm run build

Added deets below:

Hope can someone help me, thank u in advance =))

Netlify Logs: Deploy details | Riveted Games/cryptoblades-on-testnet (netlify.com)

3:47:12 AM:   1. Build command from Netlify app                             
3:47:12 AM: ────────────────────────────────────────────────────────────────
3:47:12 AM: ​
3:47:12 AM: $ npm run build:frontend
3:47:12 AM: > cryptoblades@1.0.0 build:frontend
3:47:12 AM: > cd frontend && npm run build
3:47:13 AM: > frontend@0.1.0 build
3:47:13 AM: > npm run setup-app-config && vue-cli-service build && npm run crush-images && npm run copy:abi && npm run copy:abiinterface && npm run copy:appconfig
3:47:13 AM: > frontend@0.1.0 setup-app-config
3:47:13 AM: > node scripts/setup-app-config.js
3:47:13 AM: -  Building for production...
3:47:14 AM: Starting type checking service...
3:47:14 AM: Using 1 worker with 8192MB memory limit
3:47:49 AM: Killed
3:47:49 AM: ​
3:47:49 AM:   "build.command" failed    

Package.json

  "dependencies": {
    "@chenfengyuan/vue-countdown": "^1.1.5",
    "@metamask/onboarding": "^1.0.1",
    "@vue/cli": "^4.5.12",
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-plugin-typescript": "^4.5.12",
    "@vue/cli-service": "~4.5.0",
    "@walletconnect/web3-provider": "^1.7.8",
    "@waxio/waxjs": "^0.0.15",
    "axios": "^0.21.1",
    "bignumber.js": "^9.0.1",
    "bootstrap": "^4.6.0",
    "bootstrap-vue": "^2.21.2",
    "bootstrap-vue-dialog": "^0.1.0",
    "censor-sensor": "^1.0.6",
    "cookies-eu-banner": "^2.0.1",
    "core-js": "^3.6.5",
    "fantastical": "^2.0.1",
    "imagemin": "^7.0.1",
    "seedrandom": "^3.0.5",
    "v-tooltip": "^2.1.3",
    "vue": "^2.6.11",
    "vue-3d-model": "^1.3.1",
    "vue-class-component": "^7.2.3",
    "vue-google-adsense": "^1.10.1",
    "vue-i18n": "^8.25.0",
    "vue-multiselect": "^2.1.6",
    "vue-property-decorator": "^9.1.2",
    "vue-router": "^3.5.1",
    "vue-script2": "^2.1.0",
    "vue-template-compiler": "^2.6.11",
    "vuex": "^3.6.2",
    "web3": "^1.3.4",
    "web3-eth-contract": "^1.3.4"
  },
  "devDependencies": {
    "@types/lodash": "^4.14.168",
    "@types/seedrandom": "^3.0.0",
    "@typescript-eslint/eslint-plugin": "^4.26.1",
    "@typescript-eslint/parser": "^4.26.1",
    "@vue/eslint-config-typescript": "^5.0.2",
    "babel-eslint": "^10.1.0",
    "copyfiles": "^2.4.1",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^6.2.2",
    "fs-extra": "^7.0.1",
    "node-fetch": "^2.6.7",
    "sass-loader": "^10.1.1",
    "typescript": "~4.1.5",
    "vue-cli-plugin-webpack-bundle-analyzer": "^4.0.0"
  }

I can see you’re trying to use the full memory, if this is something you can control, please use 4 or 5 GB to be safe.

Try checking out:

Thanks, was able to resolve this by setting the memory limit to 2gb and also by moving some of the packages that are in devDependencies to dependencies.

thank you for sharing your solution! This is definitely helpful for other users :+1:t6: :